3. Objektų kūrimas

1 užduotis
Byla: A.java

class A {
  public static void main(String[] args){
     System.out.println(new Integer(9));
  }
}

2 užduotis
Byla: A.java

class A {
  public static void main(String[] args){
     System.out.println(new Integer(1));
     System.out.println(new Integer(5));
     System.out.println(new Integer(6));
     System.out.println(new Integer(73));
     System.out.println(new Integer(2));
  }
}

3 užduotis
Byla: B.java

class B {
  B() {}
  public static void main(String[] args){
     new B();
  }
}

4 užduotis
Byla: C.java

class C {
  C() {
     System.out.println("Labas pasauli!");
  }
  public static void main(String[] args){
     new C();
     new C();
     new C();
  }
}