Question: Can this be done in Java? Your program will read in a number (no need to prompt the user), and then reads in that number
Can this be done in Java?


Your program will read in a number (no need to prompt the user), and then reads in that number of lines from the terminal. Then the program should print an list of strings formatted in a nice regular box. Example 1 If the user inputs this: 5 Grim visaged war has smooth'd his wrinkled front And now, instead of mounting barded steeds To fright the souls of fearful adversaries He capers nimbly in a lady's chamber To the lascivious pleasing of a lute The program should print: + Grin visaged war has smooth'd his wrinkled front + + And now, instead of mounting barded steeds + To fright the souls of fearful adversaries + He capers nimb1y in a lady's chanber + To the lascivious pleasing of a lute Example 2 If the user inputs: 2 Avengers, assemb1el Note the empty line between 2 and Avengers, asseeble. The program should print Example 3 If the user inputs: 8 The program should print
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
