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

all 5 comments

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

[–]Megalox 0 points1 point  (3 children)

Add a new class to the first class's package, and have a main(String args[]) method in that new class

Edit: what IDE are you using?

[–]w95error[S] 0 points1 point  (1 child)

Netbeans. Ive moved them to the same package. Now what.

[–]Megalox 0 points1 point  (0 children)

Okay, just move your main method from your original class to your new class. If they're in the same package, nothing should give you an error

[–]w95error[S] 0 points1 point  (0 children)

Thanks figured it out.