You may write your solutions as methods, but you don't have to.
Write a program that prints a string backward in a loop.
Write a program to find the number of occurrences of a given substring in a string. Use indexOf method in a loop (what is the return value of indexOf when the substring is not found?). Print the result only once, after the loop. Show your test data.
Write a program that simulates six rolls of a six-sided die in a loop and at the end computes the average of these six rolls.
Submit your Java file(s) to me by e-mail. The subject must be Problem Set N, where N is the problem set number.