title: Read, from standard input, a person’s family name, their first name and their home location – each on a separate line
body: <p>hi im a total beginner and lost in class when we do java this is the code i have but it will not read persons name lastname and location</p>
  
  <pre><code>import java.util.Scanner;
  
  public class lab1 {
  
      public static void main(String[] args) {
  
          String firstName,lastName,location;
  
  
          //Create scanner to obtain user input
           Scanner scanner1 = new Scanner( System.in );
  
          //obtain user input
           System.out.println("Enter your first name: ");
           firstName = scanner1.nextLine();
  
           System.out.println("Enter your last name: ");
           lastName = scanner1.nextLine();
  
           System.out.println("Enter your location: ");
           lastName = scanner1.nextLine();
  
          //output information
           System.out.print("Hello + firstName + " + "lastName + "location )
      }
  }
  </code></pre>