I Know This Looks Long But I Do Not Need The Code At All All I Need Is About 2 P

printMain: This is the method to call for generating a formatted output. The method takes three parameters a String array words, an int width, and an int option, they respectivelyspecifiythe String array to be printed, the output width, and the formatting option (0, 1, or 2 ). n output string array, whose contents are used in the above. So that it can be accessed from outside,public static attributes are attached to it.Using the methodprintOneLineas a method to call, design the code that prints the entire array in the specified format. main: This is the main method of the class. The code is already there. It receives from the user the width and then prints the array in the three different formats.

"Order a similar paper and get 100% plagiarism free, professional written paper now!"

Order Now