Menu

[r13]: / Chapter 1 Code / DooBee.java  Maximize  Restore  History

Download this file

13 lines (13 with data), 232 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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");
}
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.