Hello
public class test { public static void main(String[] args) { fail f = new fail(); } class fail { } }
I got this: non-static variable this cannot be referenced from a static context
public class test { public static void main(String[] args) { test yeah = new test(); } }
It works
Both variables aren't static. Why in the first case it doesn't work?
Thank you very much