So that it can be found outside the class! It must be public so that
the Java Virtual Machine can find the main method. You can declare a
private method but it would mean that it would not be useful unless
used only inside the class.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to