Question: //----------------------------------------------------------------------ProcessName.java--------------------------------------------------------> import java.util.Scanner; public class ProcessName { public static void main(String[] args) { Scanner console = new Scanner(System.in); System.out.print(Enter your name: ); // your code

 //----------------------------------------------------------------------ProcessName.java--------------------------------------------------------> import java.util.Scanner; public class ProcessName { public static void main(String[]

//----------------------------------------------------------------------ProcessName.java-------------------------------------------------------->

import java.util.Scanner;

public class ProcessName { public static void main(String[] args) { Scanner console = new Scanner(System.in); System.out.print("Enter your name: "); // your code goes here } }

1. Have the user enter a name 2. Extract the first and last name from the name entered by the user 3. Use methods of String class to manipulate name as specified: 4. Display the name to the console Expected Output: Type your name: Jenny Weaver 5 Your name is: Weaver, J

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 Databases Questions!