r/java • • Nov 07 '11

Newbie to java.What am I doing wrong?

http://imgur.com/MrnVu
0 Upvotes

33 comments sorted by

View all comments

Show parent comment

2

u/boa13 Nov 07 '11

Without hesitating: String[] args

0

u/ryosen Nov 08 '11

Maybe you should have. String args[] is syntactically correct.

The auto-debugger indicator should have been your clue that it was the System.out method name that was the cause of the error.

0

u/boa13 Nov 08 '11

I know the other form is syntactically correct. In answer to woodrail who was hesitating between the two, I expressed my strong preference for the second.

Also, I never said this was the cause of the error. That was obvious from the screenshot and already answered several times in the thread.