1 package test; 2 3 public class Test12 { 4 5 static void test1() { 6 System.out.println("test"); 7 } 8 9 static Object test2() { 10 System.out.println("test2"); 11 return new Object (); 12 } 13 14 static Object test3(Object o) { 15 System.out.println("test3"); 16 return o; 17 } 18 19 static Object test4(Object o, int i) { 20 System.out.println("test4"); 21 return o; 22 } 23 24 static Object test5(int i, Object o) { 25 System.out.println("test5"); 26 return o; 27 } 28 29 void test6() { 30 System.out.println("test"); 31 } 32 33 Object test7() { 34 System.out.println("test2"); 35 return new Object (); 36 } 37 38 Object test8(Object o) { 39 System.out.println("test3"); 40 return o; 41 } 42 43 Object test9(Object o, int i) { 44 System.out.println("test4"); 45 return o; 46 } 47 48 Object test10(int i, Object o) { 49 System.out.println("test5"); 50 return o; 51 } 52 53 Object o1 = null; 54 Object o2 = new Object (); 55 int i = 1; 56 String s = "s"; 57 58 public static void main(String [] args) { 59 test1(); 60 Object o = test2(); 61 o = test3(new int[] {1,2,3}); 62 o = test4(o,1); 63 o = test5(1,o); 64 65 Test12 t = new Test12(); 66 t.test6(); 67 o = t.test7(); 68 o = t.test8(o); 69 o = t.test9(o,1); 70 o = t.test10(1,o); 71 } 72 } | Popular Tags |