mirror of
https://github.com/github/semantic.git
synced 2024-12-18 12:21:57 +03:00
10 lines
221 B
Java
10 lines
221 B
Java
|
class WhileDemo {
|
||
|
public static void main(String[] args){
|
||
|
do {
|
||
|
System.out.print("Guess my name: ");
|
||
|
guess = scanner.nextLine();
|
||
|
}
|
||
|
while (!"Daffy Duck".equals(guess));
|
||
|
}
|
||
|
}
|