The code stops after having indicated the amount of pizzas, then it sends the message of the soft drinks and stops.
I've been trying several things, but nothing has worked, can you explain me why, I'm very new to this java.
import java.util.Scanner; public class AP01 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("¿Pepperoni or cheese pizza?"); String piz = scan.nextLine(); if (piz.equals("pepperoni") || piz.equals("cheese")) { System.out.println("¿How many will they be?"); int quantpiz = scan.nextInt(); System.out.println("What soda will it take, ¿Small or Large?"); String soda = scan.nextLine(); if (soda.equals("Small") || soda.equals("Large")) { System.out.println("¿How many will they be?"); int quantsoda = scan.nextInt(); } } } }