1 class LocalVariables { 2 void instanceMethod(short argS, long argL) { 3 int localI = argS; 4 long localLong = argL; 5 } 6 static int staticMethod() { 7 return 100; 8 } 9 int shared(boolean b) { 10 if (b) { 11 int i = 100; 12 return i; 13 } else { 14 int j = 200; 15 return j; 16 } 17 } 18 } 19