Additional Practice
Code challenge 1
We have learned that a for loop is best used when the loop needs to run a definite number of iterations.
However, can a for loop be designed so it can run for an indefinite number of iterations? Write the code for such a for loop that keeps repeating to print out a number until the user tells the loop to exit.
Answer
Code challenge 2
You are required to write a class with a main() method which accepts a single input parameter of String type and returns nothing. Within the body of the method, you are required to write the code which will print the input string on the screen but in reverse order and in the reverse case.
For example, if the input string is "Hello World!!!", the printed output should be "!!!DLROw OLLEh"