title: Prompt user to enter name on one line and print it out as "Last, First"
body: <p>No one in our entire lab was able to get this problem, so we have to do it for homework. We are to prompt the user to enter their first and last name on one line. The main method is supposed to handle all println statements and should print the name as Last, First.</p>
  
  <pre><code>line 26 states "cannot find symbol."
  line 36 states "not a statement. ';' expected.
  line 39 states unreachable statement.
  </code></pre>
  
  <p>I have been playing with this code for an hour and have just about given up. Any help?</p>
  
  <pre><code>/*
   * To change this template, choose Tools | Templates
   * and open the template in the editor.
   */
  package lab11;
  
  import java.util.Scanner;
  
  /**
   *
   * @author xxxxxx
   */
  public class Lab11 {
      public static void main(String[] args) {
          System.out.println("Enter your name: ");
          Scanner user_input=new Scanner(System.in);
  
          changeNameFormat();
          System.out.println(lastName+", " + firstName);
  
          System.out.println("Enter a word. ");
          palindrome();
      }
  
      public static String changeNameFormat() {
          String firstName, lastName;
          firstName, lastName = user_input.nextLine;
          return lastName;
          return firstName;
      }
  </code></pre>