Homework Assignment #7. Assigned MAR 28, due APR 5, at 11:59 pm
The final is:

This problem is not hard. Please look at it as soon as possible. The assignment will focus on the use of Math.random() and arrays. Familiarity with this problem will help you on the next exam.

Write a program that demonstrates random walk in one dimension using char[] line, that is, line is an array that contains characters. Your program should include four methods beside the main method. These are: generate(char[] line), print(char[] line), pause(), and initialize(char[] line). If the x "falls off" the line at each end, it should appear at the other end. This is called wrap-around.

In order for your program to display just one line, insert in the pause() a loop that executes a println() 20 times.