title: Search through an array for a certain String
body: <p>In the verifyPlate method, how do I search through the array Plates for a certain string which is "platenum", then return a boolean value to the main method?</p>
  
  <pre><code>import java.util.Scanner;
  import java.util.Date;
  import java.io.*;
  
  public static boolean verifyPlate(String[] plates, int numCars, Scanner keyboard)
    {
      Scanner s = new Scanner(System.in);
  
      System.out.print("Enter your plate number: ");
      String platenum = s.nextLine();
  
      boolean real=false;
  
      for (int i=0;i!=plates.length;i++)
      {
         boolean platers = platenum.equals(plates[i]); 
  
         if(platers)
         {
             System.out.println("Your vehicle is registered");
          }
         else
          System.out.println("Your vehicle is not registered");
  
       platers=real;
      }
  
      return real;
  }
  </code></pre>