public class Main { public class A { private final String v; public A(String v) { this.v = v; } } public static void main(String[] args) { new A("lol"); }}
Standard input is empty
Main.java:12: error: non-static variable this cannot be referenced from a static context new A("lol"); ^ 1 error
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!