title: How to take a letter input and use an if statement to determine what a variable will be equal to?
body: <p>Im making a test code for a super simple program a friend will use for his business. If the customer wants mint they'd enter <kbd>y</kbd> if not they'd enter <kbd>n</kbd>.</p>
  
  <p>So what can I input to make this work?</p>
  
  <pre><code>import java.lang.Math;
  import java.util.Scanner;
  
  public class Kloud1{
  
    public static void main(String[]args){
  
      boolean exitloop = false;
  
      while (!exitloop){
  
        Scanner input=new Scanner(System.in);
  
        System.out.println("KK  KK LL       OOOOO  UU   UU DDDDD");
        System.out.println("KK KK  LL      OO   OO UU   UU DD  DD  ");
        System.out.println("KKKK   LL      OO   OO UU   UU DD   DD ");
        System.out.println("KK KK  LL      OO   OO UU   UU DD   DD ");
        System.out.println("KK  KK LLLLLLL  OOOO0   UUUUU  DDDDDD  ");
  
        System.out.print("Enter amount of people in group:");
        double p= input.nextDouble();
        System.out.print("Enter amount of desired Hookahs");
        double h= input.nextDouble();
        System.out.print("Would they like to add mint? (enter y or n) ");
        String mint = input.nextLine();
        if (mint.equals("y")){
          int minty=5;
        }
        else if (mint.equals("n")){
          int minty=0;
        }
        double minty = (String minty);
        double y = input.nextDouble();
        double t = ((p * 5) + minty + ( h * 22)) * 1.0825 ;
        System.out.println(" The total is:" + t);
        System.out.print("Press enter");
  
      }
    }
  }
  </code></pre>