title: Grocery bill program
body: <p>trying to write a program where the user is able to insert food price and whether or not it is on sale I'm supposed to use a while loop to see if they have more items or not then display the total tax and final bill. Im trying to find a way to print out all the values inputted by the user in the loop but can't find a way how I got it to ask until the user has no items just need to get all the items printed out in the output </p>
  
  <pre><code> public static void main (String[] args)
     {
        double price;
        String decision;
        String item;
  
        do
        {
        Scanner scan = new Scanner(System.in);
  
        //Name of the item
        System.out.println("What is the name of your item?");
        item = scan.nextLine(); 
  
        //Price of the item
        System.out.println("What is the price of your item?");
        price = scan.nextDouble();
  
        //Whether item is on sale
        System.out.println("Is this item on sale?");
        String sale = scan.next();
  
        System.out.println("Do you have more items? (Yes/No)");
        decision = scan.next(); 
        }while (decision.equalsIgnoreCase("yes"));
  
        System.out.println("Grocery bill");
        System.out.println();
        System.out.println("purchases");
        System.out.print(item + ": " + "$" + price);
  
     }
  </code></pre>
  
  <p>so far this is what i have</p>