1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
elena55 [62]
3 years ago
12

Write a program that reads a person's first and last names, separated by a space. Then the program outputs last name, comma, fir

st name. End with newline.
Computers and Technology
1 answer:
Rama09 [41]3 years ago
4 0

Answer:

The program to this question as follows:

Program:

//defining package

import java.util.*; //import package for user input

public class Name //defining class Name

{

public static void main (String ar []) //defining main method

{

String First_Name,Last_Name; //defining variables

Scanner obc = new Scanner(System.in); //creating Scanner class object

System.out.print("Enter your full name: "); //message

First_Name = obc.next(); //taking input

Last_Name = obc.next(); //taking input

System.out.println(Last_Name +" , "+ First_Name); //print value

}

}

Output:

Enter your full name: data base

base , data

Explanation:

The description of the above java program as follows:

  • A package is imported for user input in the first line of the program,  then a class is defined, that is "Name", in this class two string variable is declared, that is "First_Name and Last_Name".  
  • In the next step, a scanner class object is created, which is "obc", which is used to take user input in this variable that is declared above.
  • Then a print function is used to print the user input values, in printing time the last name is printed first that is separated by a comma then print the value of first name.
You might be interested in
Linda wants to apply for a job in a company of her choice. Which information would her potential employers likely review in her
Lemur [1.5K]
The answer is A. Comments about her past job and work performance.
4 0
3 years ago
Read 2 more answers
What is the value of the variable result after these lines of code are executed?
notsponge [240]

Answer:

5

Explanation:

6 0
3 years ago
Read 2 more answers
Explain the steps users can take to maintain an operating system
Mars2501 [29]

First is it to always clean out all the junk that is left behind by the operating system and the browsers. You can easily do this using the Disk Cleanup utility included on the windows systems. You can clean up the registry. However, you should be very careful with the registry. Any wrong move might mess up everything


Search and destroy viruses and malware on your PC by installing an anti-virus security program and setting up an automated maintenance schedule.


Defragment main and partitioned drives to keep your computer running smoothly.


Uninstall software programs and personal files like pictures, movies and music that are no longer in use to free up more space. The more the space, the faster the PC will go. You can also run the msconfig command in the RUN command prompt to uncheck start up programs that you do not use

4 0
4 years ago
Name:
Elanso [62]
1 6gb of ram
inteel
500gb
500gb
4 0
3 years ago
How can you categorize computer on the basic of its brands.​
Naddika [18.5K]

Answer:

On the basis of brand computer are classified as:

• IBM Personal Computers.

• IBM compatible.

• Apple/Macintosh/Acer/LG/ Samsung etc.

hope it helps

pa brainliest po

8 0
3 years ago
Other questions:
  • Write a Console Java program that asks the user to enter one sentence on the keyboard. Output on the console:
    6·1 answer
  • what notation system supports presenting the largest numbers using fewest digits; Binary, decimal or hexadecimal?
    11·1 answer
  • Which one is not the future of wireless technology?
    8·1 answer
  • Assume that input file references a Scanner object that was used to open a file. Which of the following while loops shows the co
    6·1 answer
  • An ____ is a collection of tools, features, and interfaces that enables users to add, update, manage, access, and analyze the co
    10·1 answer
  • As technology advances, does technology become more of less complex?
    14·1 answer
  • Write two examples of hard copy output?​
    9·1 answer
  • Fire Tint, Inc., (FTI), applies tint to airplane canopies (front windows) manufactured by other companies. When the canopy manuf
    12·1 answer
  • To date, what has most propelled the digital revolution?
    10·1 answer
  • with the advent of technology one can experience special features such as 3D theater experiences true or false
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!