Supriya Dle

Greenhorn
+ Follow
since Feb 12, 2009
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 Supriya Dle

Thanks...

I have learn new things from you guys...!!

I will keep in mind from next time...
15 years ago
Hi All,

Thanks...

When I am using below coding:

public class DooBee {
public static void main (String[]args)
{
int x = 1;
while ( x < 3 ) {
System.out.print("Doo");
System.out.print("Bee");
x = x + 1 ;
}
If (x == 3){
System.out.print("Do");
}
}
}

"Getting error "DooBee.java:10: ';' expected
If (x == 3){
1 error"

And when I miss "If (x == 3)" then the program run sucessfully.... thanks Really grate experince in this forum...


15 years ago
Hi,

I am new user of java & I will doing my teaching with Kathy Sierra & Bert Bates book (Head First Java)...
Today I am solve one program but getting error code is Below mention:
// Code
public class DooBee {
public static void main (String[]args) {
int x = 1;
while ( x < 2 ) {
System.out.print("Doo");
System.out.print("Bee");
x = x + 1 ;
}
If (x == 2){
System.out.print("Do");
}
}
}


Need output like this "DooBeeDooBeeDo"

Can any body help me?
15 years ago