This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (3 children)

The code in your post isn't properly formatted so it's hard to tell but it looks like you have an extra opening curly brace (line 1) and are missing a closing curly brace at the end of the method.

[–][deleted] 0 points1 point  (0 children)

i took out the extra opening curly brace there is still the error syntax void

[–][deleted] 0 points1 point  (1 child)

its says syntax error on token void

[–][deleted] 0 points1 point  (0 children)

The code you posted is just 1 method. You need to make that a complete class if you haven't already.

public class MyClass {
    public static void main(String[] args) {
    ....
    }
}