Question: Write two scnr . next ( ) statements to read in the values lastName and firstName from input, respectively. Then, write a System.out.println ( )
Write two scnrnext statements to read in the values lastName and firstName from input, respectively. Then, write a System.out.println statement to output the last name, a dash and the first name.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
