fork download
  1. public class Test { /**
  2.   * @param args
  3.   */
  4. private String myName;
  5. private String lastName;
  6.  
  7.  
  8. public Test() {
  9. // TODO Auto-generated constructor stub
  10. System.out.print("Hey,I am default,so any how I am always called!");
  11.  
  12. }
  13. public static void main(String[] args) {
  14. // TODO Auto-generated method stub
  15.  
  16. private int myValue=10;
  17. System.out.print("my value is:"+myValue); } }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:16: error: illegal start of expression
        private int myValue=10;
        ^
1 error
stdout
Standard output is empty