public static void main (String args[])
{
// code here
}
You forgot the static keyword.
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711
my program won't even run so i must have missed something drastically but i don't see it....
Excellent analysis of the problem, also let me congratulate you on the wonderful code alignment technique you have pioneered.
Also do not directly copy paste your assignment.
Here are a few pointers you need to look into while and do while loops in Java - Look here .
Reading an Integer from Console in Java
Sun Java Code Conventions , no need to read the whole document, just go through the basic parts related to code indentation, variable naming etc.
And Vernon already has pointed out the "main" part
stephen84s
Nearly a Posting Virtuoso
1,443 posts since Jul 2007
Reputation Points: 668
Solved Threads: 154