fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class PassA
  9. {
  10. public static void main (String[] args)
  11. {
  12.  
  13. PassA p= new PasssA();
  14. }
  15. void start()
  16. {
  17. long[] a1 = {3,4,5};
  18. long[] a2 =fix (a1);
  19. System.out.print(a1[0]+a1[1]+a1[2]+" ");
  20. System.out.println(a2[0]+a2[1]+a2[2]);
  21. }
  22.  
  23. long[] fix(long [] a3)
  24. {
  25. a3[1]=7;
  26. return a3;
  27.  
  28. }
  29. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:13: error: cannot find symbol
	PassA p= new PasssA();
	             ^
  symbol:   class PasssA
  location: class PassA
1 error
stdout
Standard output is empty