notes10-30 - } int xAxis = 10, yAxis = 20 showSum(xAxis,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 system.out.println("test") int i = Integer.parseInt(s) - public static void intPrint(int i){ sys(i) sys("dfjdslfj") } - public static int SquareIt(int i){ //no conflict with i, its okay! int j = i*i return j } int i = 13721 int iS= SquareIt(i) or int Is = SquareIt(13721) - public static void showSum(int x, int y){ sys(x+y)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } int xAxis = 10, yAxis = 20 showSum(xAxis, yAxis) pass.by.Value-String s = "Rob" public static void showLength(String Str){ sys("String has this many characters=" + Str.length()) }-Sheet1 Page 2 //Immutable - cannot be changed, if specified again like robert, it will allocate new memory...
View Full Document

Page1 / 2

notes10-30 - } int xAxis = 10, yAxis = 20 showSum(xAxis,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online