the second problem seems to be ok by me
to run the code simply use
javac TestGreeting.java
then
java TestGreeting
it should run with out any problem
a more than obvious and useless answer: since the thread-starter had errors while running the code, it is safe to assume he/she has already figured out how to run a java app.
a more than obvious and useless answer: since the thread-starter had errors while running the code, it is safe to assume he/she has already figured out how to run a java app.
was it really necessary to post this twice?
Have you thought if he was executing the wrong code since there will be two classes. I he said he had problem with classes, now he has two class and one does not have a main method. What would happen if it was that particular one he was trying to execute
So pls think twice before you send your post
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.