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
MrRissso [65]
3 years ago
9

Suppose your name was George Gershwin. Write a complete main method that would print your last name, followed by a comma, follow

ed by a space and your first name.
Computers and Technology
1 answer:
12345 [234]3 years ago
4 0

Answer:

Following is the program in Java Language

public class Main // main class

{

public static void main(String[] args) // main method

{

System.out.println( "Gershwin, George" ); // display value

}

}

Output:

Gershwin, George

Explanation:

Following is the description of Statement:

  • In this, we using the System.out.println() to print the value in the console window. The System.out.println() is used in java is used to print the data in the console.
  • In this, we pass the "Gershwin ,George" string in the double quotes along with a comma between them.

You might be interested in
"Write code that prints: Ready! countNum ... 2 1 Start! Your code should contain a for loop. Print a newline after each number a
BartSMP [9]

Explanation:

#include <iostream.h>

#inlcude<conion.h>

void main()

{

  int count, x;

  clrscr();

  cout<<"Enter the count:";

  cin>> count;

  cout<<"Ready!\n";

  for(x=count;x>0;x--)

  {

     cout<<x<<"\n";

  }

  cout<<"Start";

  getche();

}

This is a simple program where the output is expected to be in reverse order. So we run a for loop starting from the count and decrements the counter by 1 every time when the loop runs and print the value. So to print the output in "new line" we include "\n".

6 0
2 years ago
HOW DO I DELETE A BRAINLY QUESTION?
Fantom [35]

Answer:

To delete a question you asked, click the arrow in the top right-hand corner of your question page and select Delete. If any answers have been added to your question, you'll have to request its deletion.Explanation:

8 0
3 years ago
Read 2 more answers
Employees often attend trainings and read policies. They endure these, but do not internalize them. What should be your first st
Vlada [557]

Answer:

I would say b but if I'm wrong take the point back

7 0
1 year ago
There was a thunderstorm in your area and the power went out.
Anna71 [15]

Answer:

A) The law requires that when I get to an intersection, I have to allow a right-of-way to the vehicles approaching from the right.

B) if there is an officer directing traffic, then I have to follow the directives of the officer.

Cheers!

8 0
3 years ago
Had you guys go to prom by yourself or someone in your senior class
Bess [88]

Answer: I didn’t have a “date”, I went with friends.

4 0
2 years ago
Read 2 more answers
Other questions:
  • On the CallCenterReport worksheet, add formulas that will summarize the issues for the department entered in cell B3. In cell B6
    13·1 answer
  • A​ ___________ identifies the content and purpose of the​ visual, along with whatever label and number​ you're using to refer to
    15·1 answer
  • Within an event-driven program a component from which an event is generated is the ____
    10·1 answer
  • In a Microsoft® Word® document, if a user wanted to organize information in rows in columns, they should select a
    5·1 answer
  • Which of the following, (1) money deposited in a bank account, (2) student recording her answer to a question in an online test,
    9·1 answer
  • When students have computer trouble they usually are expected to
    12·2 answers
  • DO NOT ANSWER FOR JUST POINTS
    8·2 answers
  • Examples of system software include operating systems like macos, Linux, Android and
    10·2 answers
  • How bout these chose your fave for bnha
    14·2 answers
  • Write at least 4 sentences
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!