Question: In Java squareWord - This method will return a string that when printed out will display a square or Bad input. If the input argument

In Java
squareWord - This method will return a string that when printed out will display a square or Bad input. If the input argument has at least one noPrint char in it, the string Bad input is returned. Otherwise return a square, where each row reveals just the next letter of input and the remaining letters are *. See the output of the SampleDriver for details. ===squareWord Output== Bad input C**** cl******* cle****** clev***** cleve**** clevel**** clevela** clevelan* cleveland
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
