Go to w3c.91xjr.com
Reset Score
Close This Menu
Java Syntax
Exercise 1
Exercise 2
Go to Java Syntax Tutorial
Java Variables
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Go to Java Variables Tutorial
Java Data Types
Exercise 1
Exercise 2
Exercise 3
Go to Java Data Types Tutorial
Java Operators
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Go to Java Operators Tutorial
Java Strings
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Exercise 6
Go to Java Strings Tutorial
Java Math
Exercise 1
Exercise 2
Exercise 3
Go to Java Math Tutorial
Java Booleans
Exercise 1
Exercise 2
Go to Java Booleans Tutorial
Java If...Else
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Go to Java If...Else Tutorial
Java Switch
Exercise 1
Exercise 2
Go to Java Switch Tutorial
Java Loops
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Exercise 6
Go to Java Loops Tutorial
Java Arrays
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Exercise 6
Go to Java Arrays Tutorial
Java Methods
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Go to Java Methods Tutorial
Java Classes/Objects
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Exercise 6
Exercise 7
Exercise 8
Go to Java Classes/Objects Tutorial
Java Exceptions
Exercise 1
Exercise 2
Go to Java Exceptions Tutorial
Menu
×
×
Correct!
Exercise:
Print
i
as long as
i
is less than 6.
int i = 1; @(5) (i < 6) { System.out.println(i); @(3); }
int i = 1; while (i < 6) { System.out.println(i); i++; }
Not Correct
Click
here
to try again.
Correct!
Next ❯
Show Answer
Hide Answer
Submit Answer ❯
Show Answer
Hide Answer
×
Reset the Score?
Reset?
Cancel?