1. public class X { 2. public static void main (String [] args) { 3. int [] a = new int [l]: 4. modify (a): 5. System.out.printIn(a[0]): 6. } 7. 8. public static void modify (int [] a) { 9. a [0] ++; 10. } 11. }
Show comments for this question (0) Add comments Link to this question
1. public class X { 2. public static void main (String [] args) { 3. String sl = new String (“true”); 4. Boolean bl – new Boolean (true); 5. if (sl.cquals(bl)) { 6. System.out.printIn (“Equal”): 7. } 8. } 9. }
8. String foo = “blue”; 9. boolcan [] bar = new Boolean [1]; 10. if (bar [0] { 11. foo = “green”; 12. }
1. public class Foo{ 2. public static void main (String [] args) { 3. Strings; 4. System.outprintIn (“S=”+s): 5. } 6. }
1. public class Foo { 2. public void main ( String [] args ) { 3. System.out.printIn (“Hello world.”); 4. } 5. }
1. public class Exception Test { 2. class Test Exception extends Exception {} 3. public void runs Test () throws Test Exception {} 4. public void test () /* Point X*/{ 5. run Test (); 6. } 7. }
1. public class for Bar { 2. public static void main (String [] args){ 3. int i = 0 and j = 5 4. tp: for (;;) { 5. i ++; 6. for (;;) 7. if (i > -- j) break tp: 8. } 9. System.out.printIn (“i= “ + “ j = “ + j): 10. { 11. {
<my Tag.get Advice type =”fashion”/>