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 01:00
Complete the sentence about a presentation delivery method
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
How many points do i need before i can send a chat
Answers: 1
question
Computers and Technology, 24.06.2019 07:40
What type of multimedia are live news feeds? live news feeds are examples of multimedia.
Answers: 2
question
Computers and Technology, 24.06.2019 16:00
5.a fishing rod is formed from a composite material of 0.5 kg of glass fibers embedded in a matrix of 0.5 kg of epoxy resin. the glass fibers are assumed to be long, continuous and unidirectional. to achieve a greater stiffness it is proposed to use a different composite that is comprised of long continuous carbon fibers that will be embedded in a matrix of 0.5 kg of epoxy resin. if the modulus of elasticity of the carbon fiber composite is 10% greater than the elastic modulus of the glass fiber composite, estimate the mass of carbon fibers that will be used to make the carbon fiber composite. assume the applied tensile stress is parallel to the direction of the long axis of the fibers. the epoxy resin, glass fiber, and carbon fiber have an elastic modulus of 5, 86, and 350 gpa respectively and a density of 1100, 2500, and 1800 respectively.
Answers: 3
You know the right answer?
Write a method called processname that accepts a scanner for the console as a parameter and that pro...
Questions
Questions on the website: 13722367