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

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

LANGUAGE: JAVA

CHALLENGE:

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.

SOLUTION:


public static void main (String[] args){
      System.out.println("Gershwin, George") ;
}

Add comment