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 Test {
  9. int x;
  10. int y;
  11. public Test() {
  12. Test(0,0);
  13. }
  14. public Test(int _x, int _y) {
  15. this.x = _x;
  16. this.y = _y;
  17. }
  18. public static void main(String[] args) {
  19. Test t = new Test();
  20. }
  21. }
Compilation error #stdin compilation error #stdout 0.08s 380224KB
stdin
Standard input is empty
compilation info
Main.java:12: error: cannot find symbol
		Test(0,0);
		^
  symbol:   method Test(int,int)
  location: class Test
1 error
stdout
Standard output is empty