The while statement keeps executing the statement while the condition
holds true.
1. [ C++ ] while
We test the string read in against the value "Ajax". While the string is
different the loop keeps going.
test text
1. [ Java ] while
We test the string read in against the value "Ajax". While the string is
different the loop keeps going.
test text
1. [ C# ] while
We test the string read in against the value "Ajax". While the string is
different the loop keeps going.
test text
2. [ C++ ] while .. break
This version does the same as above but is slightly safer.
The loop quits when the target value "Ajax" is found. If the target value
does not show up the loop will quit without an exception.
test text
2. [ Java ] while .. break
This version does the same as above but is slightly safer.
The loop quits when the target value "Ajax" is found. If the target value
does not show up the loop will quit without an exception.
test text
2. [ C# ] while .. break
This version does the same as above but is slightly safer.
The loop quits when the target value "Ajax" is found. If the target value
does not show up the loop will quit without an exception.
test text
3. [ C++ ] while .. continue
The continue statement short cuts the execution of the body. The
next iteration starts right away. This is useful for skipping values.
Here we skip all values that do not have exactly 4 characters.
test text
3. [ Java ] while .. continue
The continue statement short cuts the execution of the body. The
next iteration starts right away. This is useful for skipping values.
Here we skip all values that do not have exactly 4 characters.
test text
3. [ C# ] while .. continue
The continue statement short cuts the execution of the body. The
next iteration starts right away. This is useful for skipping values.
Here we skip all values that do not have exactly 4 characters.
test text