View Single Post
  #9 (permalink)  
Old 01-22-2008, 04:27 AM
CaptainMorgan's Avatar
CaptainMorgan CaptainMorgan is offline
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Okay, I see you followed ShoeNinja's advice and moved the functions outside of the main method. But now, your main method is simply this line:
Code:
public static void main(String[] args) {}


If the main method is only one line, with both the opening and closing brackets containing nothing in between, and main is the entry point of the application... how can you expect your program to output anything?

Please review the section on block scope from your textbook. Or, go to the end of this page and review the section on blocks.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)

Last edited by CaptainMorgan : 01-22-2008 at 04:31 AM.
Reply With Quote