fork(3) download
  1.  
  2. public class Main {
  3. public class A {
  4. private final String v;
  5.  
  6. public A(String v) {
  7. this.v = v;
  8. }
  9. }
  10.  
  11. public static void main(String[] args) {
  12. new A("lol");
  13. }
  14. }
  15.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:12: error: non-static variable this cannot be referenced from a static context
        new A("lol");
        ^
1 error
stdout
Standard output is empty