Ask Question
17 August, 15:50

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

+1
Answers (1)
  1. 17 August, 16:20
    0
    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.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Suppose your name was George Gershwin. Write a complete main method that would print your last name, followed by a comma, followed by a ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers