Write a program that reads a person's first and last names, separated by a space. Then the program outputs last name, comma, first name. End with newline, Example output if the input is: Maya Jones...

Needing help with this
Write a program that reads a person's first and last names, separated by a space. Then the program outputs last name, comma,<br>first name. End with newline,<br>Example output if the input is: Maya Jones<br>Jones, Maya<br>283902.1999362 gzay<br>1 import java.util.Scanner;<br>1 test<br>2.<br>3 public class SpaceReplace {<br>public static void main (String O args) {<br>Scanner scnr - new Scanner(System.in);<br>String firstName;<br>String lastName;<br>Al tests<br>passed<br>6.<br>7<br>8<br>9.<br>V. Your solution goes here<br>10<br>}<br>12 }<br>11<br>Run<br>View your last submisslon<br>

Extracted text: Write a program that reads a person's first and last names, separated by a space. Then the program outputs last name, comma, first name. End with newline, Example output if the input is: Maya Jones Jones, Maya 283902.1999362 gzay 1 import java.util.Scanner; 1 test 2. 3 public class SpaceReplace { public static void main (String O args) { Scanner scnr - new Scanner(System.in); String firstName; String lastName; Al tests passed 6. 7 8 9. V. Your solution goes here 10 } 12 } 11 Run View your last submisslon

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here