subject
Computers and Technology, 27.01.2022 17:50 25linm

Add to the code below so that it reads the user's first and last name (an entire line as a single string), then prints the last name followed by a comma and the first initial. (You may assume that the user types valid input consisting of a first name, a single space, then a last name.) For example: Type your name: Jessica Miller
Your name is: Miller, J.
(Bare code: For this problem, you are supposed to just submit a fragment of Java code as described. You shouldnot write any class or method heading around your code; just write the lines of code that will produce the result described.)
Scanner console = new Scanner(System. in);
System. out. print("Type your name: ");
// your code goes here
System. out. println("Your name is: " + name);

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:20
What’s resistance in an electrical circuit ?
Answers: 1
question
Computers and Technology, 22.06.2019 04:30
There is a simple pattern for determining if a binary number is odd. what is it and why does this pattern occur? how many bits would you need if you wanted to have the ability to count up to 1000? how high could you count in binary if you used all 10 of your fingers as bits? (finger up means 1, finger down means 0)
Answers: 3
question
Computers and Technology, 22.06.2019 22:30
You are new to microsoft certification and want to start out by getting a certification geared around windows 8. what microsoft certification should you pursue?
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
Answers: 2
You know the right answer?
Add to the code below so that it reads the user's first and last name (an entire line as a single st...
Questions
question
Mathematics, 04.08.2019 02:30
Questions on the website: 13722361