Main.java:12: error: non-static variable this cannot be referenced from a static context
Entity entity1 = new Entity();
^
Main.java:16: error: non-static variable this cannot be referenced from a static context
Entity entity2 = new Entity();
^
Main.java:25: error: cannot find symbol
Systemout.println(index);
^
symbol: variable Systemout
location: class Ideone
3 errors