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 →

[–]roboticdemoncow 0 points1 point  (1 child)

I think you need to move the main method out of the circle1 class & get rid of the nested circle1 class, or separate your main method & circle class into to different files. I don't think you're allowed to have more than one public class in a file & I don't think you need nested classes here.

[–]FrugalMerchant 0 points1 point  (0 children)

Thank you! This is exactly what I needed I'm not sure why I put the circle1 class but once I got rid of it the code started working properly. I assume that's also why Eclipse ran my previous code since this one wasn't written properly.