Not well done?
Hey there, Great code for beginners to try to understand java ( like myself). Even though im a beginner and barely understand Java, i wonder if it was intended, if i start the code it will only run once. so it went from 99 to 98 only. If it was intended then ignore this. if not then i might add that u forgot to put the big part of the code that has to decrease the amount of bottles into a while loop.
while(beerNum >0){
System.out.println("Take one down.");
System.out.println("Pass it around.");
beerNum = beerNum- 1;
if(beerNum >=0){
System.out.println(beerNum +" " + word + " of beer on the wall");
}else{
System.out.println("No more bottles of beer on the wall ");
}
like this it will arrive at 0 otherwise it just runs once and thats it. (as nothing in the programm tells it to redo the process until its at 0)
but nevertheless, good exercise for people starting out with java and just learned to do if and while loops =)