Could someone tell me what is wrong with this program?
class BeerSong{
public static void main (String[] args) {
int beerNum = 99;
String word = "bottles";
While(beerNum > 0); {
if (beerNum ==1) {
word = "bottle"; //singular, as in one bottle
}
System.out.println(beerNum + "" + word + "of beer on the wall");
System.out.println(beerNum + "" + word + "of beer");
System.out.println("Take one down.");
System.out.println("Pass it around");
beerNum = beerNum - 1;
if (beerNum > O) {
System.out.println(beerNum + "" +word + "of beer on the wall");
} else {
System.out.println("No more bottles of beer on the wall");
}//end else
}//end while loop
}//end main method
}//end class
[ October 27, 2007: Message edited by: Sam G-H ]