title: Correctly scanning a blank input with the Scanner object
body: <p>I'm working on creating a basic guitar inventory and I'm doing testing with scanner, I was trying to scan a blank entry and when there is a blank entry it should print "ANY" and it does, i'm using scan.useDelimiter("\z");  and now when I enter a correct entry like "fender" it should print "FENDER" but it just prints "ANY" as if the entry was incorrect.. someone know what I can do to solve that problem? Here is an sscce:</p>
  
  <pre><code>import java.util.Scanner;
  
  public class SSCCE {
  
      public static void main(String[] args)
      {
          System.out.println("Enter a builder name: ");
          Scanner scan = new Scanner(System.in);
          scan.useDelimiter("\\z"); // count a blank entry (end of input)
  
  
          String entry_1 = scan.next();
  
  
          if (entry_1.equalsIgnoreCase("FENDER")
                          || entry_1.equalsIgnoreCase("MARTIN")
                          || entry_1.equalsIgnoreCase("GIBSON")
                          || entry_1.equalsIgnoreCase("COLLINGS")
                          || entry_1.equalsIgnoreCase("OLSON")
                          || entry_1.equalsIgnoreCase("RYAN") 
                          || entry_1.equalsIgnoreCase("PRS")) 
          {
              entry_1 = entry_1.toUpperCase();
  
              System.out.println(entry_1);
          }
  
          else
          {       
              entry_1 = "ANY";
  
              System.out.println(entry_1);
          }   
      }
  
  }
  </code></pre>