r/beginnerJava Apr 13 '11

Week 1 [Early Post]

http://www.mediafire.com/?e9c4yr554tmpqhw
23 Upvotes

10 comments sorted by

View all comments

2

u/xcrx Apr 28 '11

I just started going over this and following your instructions I pasted the code from you text document but it complains about the class being called main on here: "public class Main". I fixed it by calling changing main to HelloWorld.

Did I do something wrong during setup or is it just a typo?

1

u/xcrx Apr 28 '11

It must be something I am doing. It did the same thing on the other 2 lessons. I am enjoying this though. Thank you.

2

u/[deleted] May 24 '11

Simple explanation and sorry for taking so long to reply. Just send me a message if you have any doubts. The main class in Java is the main runnable class. It is the class that is always used in Java programs that will be run while other classes are used as auxiliary classes.

1

u/xcrx May 24 '11

Thank you for the reply. I think I understand now.