title: Comparing user input to an array of Strings
body: <p>I have to compare what a user types in to an array of names and if it's true it returns true otherwise it returns false so far i have this</p>
  
  <pre><code>public static boolean employeeReport(Employee[] emp, String[] lastName) throws IOException
  {
      System.out.println("Type out the last name of the employee you are looking for: ");
      Scanner scan = new Scanner (System.in);
      String Name = scan.next();
  
      // ...
  }
  </code></pre>
  
  <p>I was thinking of making a for loop and comparing "Name" to each individual value of a String array i have. Any help?</p>