Question: ss String personName is read from input. Output personName left aligned with a width of 8, followed by Williams. End with a newline. Ex:

ss

String personName is read from input. Output personName left aligned with a width of 8, followed by " Williams". End with a newline. Ex: If the input is Reese, then the output is: Reese Williams 1 import java. util. Scanner; public class OutputFormatter { YOUISWNP public static void main (String args) { Scanner sonr = new Scanner (System. in) ; String personName; 8 personName = scnr . next(); 9 10 /* Your code goes here */ 11 12 13 }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Chemistry Questions!