1 import java.util.*; 2 3 public class Simple2 { 4 private int x; 5 6 public static void main(String [] args) { 7 int j = 1; 8 int i = 2; 9 ; 10 if (i + j > 1) { System.out.println("Hello" + i); } 11 Simple2.add(1, 2); 12 Simple2 simple = new Simple2(); 13 System.out.println(Simple2.add(2, 3)); 14 simple.run(); 15 } 16 17 public static String getString() { return "Hello"; } 18 19 public static int add(int i, int j) { return i + j; } 20 21 public Simple2() { this(8); } 22 23 public Simple2(int y) { 24 super(); 25 this.x = y; 26 System.out.println(this.x); 27 } 28 29 public void run() { int[] arr = { 9, 0, 8 }; } 30 31 } 32 | Popular Tags |