Hello ppl.
Forgive me for asking such a noob question, but what is the difference between defining arrays:
“String[] var” and “String var[]” ? I was going crazy for an hour becouse of this…
I wanted to test drawing swing components and tried to made simplest JFrame like this:
import javax.swing.JFrame;
public class Menu extends JFrame {
public Menu() {
super("Menu test za Viktoirje");
setDefaultCloseOperation(EXIT_ON_CLOSE);
setVisible(true);
}
public static void main(String args[]) {
new Menu();
}
}
…it will compile but when I start it it complains it can’t find main class… I stared and stared and tried everything I can think of (console, classpaths…), nothing! I’ve looked at main method from my game… it’s identical. Finnaly hour later I created new class with eclipse with automaticly generated main and I saw that difference is what I wrote at top of post, array declaration. It works. I thought there’s no difference between 2 declarations…
Now I wonder, why the hell my huge game project works just fine with it and this little piece of sh** complains about not finding main??

… something is wrong with my JRE or something 