fork download
  1. class MyClass
  2.  
  3. {
  4.  
  5. int i;
  6.  
  7. float j;
  8.  
  9. MyClass(int x, float y)
  10.  
  11. {
  12.  
  13. i=x;
  14.  
  15. j=y;
  16.  
  17. }
  18.  
  19. MyClass()
  20.  
  21. {
  22.  
  23. }
  24.  
  25. public static void main(String[] args)
  26.  
  27. {
  28.  
  29. MyClass myObj= new MyClass();
  30.  
  31. System.out.println("myObj.i="+myObj.i+", myObj.j="+myObj.j);
  32.  
  33. }
  34.  
  35. }
Success #stdin #stdout 0.19s 57792KB
stdin
Standard input is empty
stdout
myObj.i=0, myObj.j=0.0