Christopher Kirkland

Greenhorn
+ Follow
since Aug 10, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Christopher Kirkland

Thak you I got it working
18 years ago
hello,
I am currently learning java programming and stuck on one of the tutorials in this book.

the code:
public class beersong{
public static void main (String[] args) {
int beerNum= 99;
string word ="bottles";
while (beerNum >0 ) {
word= "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 > 0) {
system.out.println (beerNum+""+ word + " of beer on the wall");
}else{
system.out.println("no more bottles of beer on the wall");
}
}
}
}
when compiled I get thease problems:
C:\Documents and Settings\Chris\app\beersong\beersong.java:20: 'class' or 'interface' expected
}
^
C:\Documents and Settings\Chris\app\beersong\beersong.java:20: 'class' or 'interface' expected
}
^
2 errors
18 years ago