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[]](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f5abf531bb8_37266f5abf4a4fa9.jpg)
//----------------------------------------------------------------------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
Get step-by-step solutions from verified subject matter experts
