Computers and Technology

Write a method called processname that accepts a scanner for the console as a parameter and that prompts the user to enter his or her full name, then prints the name in reverse order (i. e., last name, first name). you may assume that only a first and last name will be given. you should read the entire line of input at once with the scanner and then break it apart as necessary. here is a sample dialogue with the user:
output: enter your full name: sammy jankisyour name in reverse order is jankis, sammywhat i have: public static void processname(scanner in){system. out. print(" enter your full name: "); string name = in. nextline(); string lastname= in. substring(6,11); string firstname= in. substring(0,5); system. out. println("your name in reverse order is " + lastname + ", " + firstname); }

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 14:30, binodkharal2048
Hi plz 11 ! when planning a table, what step comes first: "define the column headers" or "calculate the number of columns/rows"? a. calculate the number of columns/rows b. define the column headers
Answers: 1
image
Computers and Technology, 22.06.2019 17:00, ruddymorales1123
What allows you to create a wireless connection among your smart devices
Answers: 2
image
Computers and Technology, 23.06.2019 08:00, Buddy01
Match the items with their respective descriptions.
Answers: 1
image
Computers and Technology, 23.06.2019 11:20, 1tzM3
Http is the protocol that governs communications between web servers and web clients (i. e. browsers). part of the protocol includes a status code returned by the server to tell the browser the status of its most recent page request. some of the codes and their meanings are listed below: 200, ok (fulfilled)403, forbidden404, not found500, server errorgiven an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.
Answers: 2
Do you know the correct answer?
Write a method called processname that accepts a scanner for the console as a parameter and that pro...

Questions in other subjects: