[Solved] MyFirstApp.java:7: error: class, interface, or enum expected [closed]


The compilation error exactly tells you where to look. MyFirstApp.java:7 implies there is something wrong at line 7. If you go through your code at line 7 there is an extra closing bracket. Remove this bracket and it would start compiling perfectly.

solved MyFirstApp.java:7: error: class, interface, or enum expected [closed]