Ask Question
29 August, 16:15

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. 29 August, 16:34
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers