subject

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); }

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:30
You are consulting for a beverage distributor who is interested in determining the benefits it could achieve from implementing new information systems. what will you advise as the first step?
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
What is one potential problem associated with an organization purchasing new technology early in its lifecycle
Answers: 1
question
Computers and Technology, 24.06.2019 10:20
Multiple choice project create a program with two multiple choice questions. 1. users have two attempts only, show attempt number each time. hint: while loop with break control. (20%) 2. only one correct answer for each question, use switch case for each question. (20%) 3. show total score after the two questions are answered. hint: . (20%) 4. user have options to answer the two questions again if first attempt score is not 100%. hint: if statment. (20%) 5. use string method .toupper() to allow users to enter with lowercase or uppercase letters. (20%) 1. where is the capital of the state of florida? a. orlando b. tallahassee c. miami d. tampa b 2. where is walt disney world park located in florida? a. orlando b. tallahassee c. miami d. tampa a
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
Which of the following characters is acceptable to use in a filename? ? / – %
Answers: 1
You know the right answer?
Write a method called processname that accepts a scanner for the console as a parameter and that pro...
Questions