Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- necesito que si tipo == "LATA", no entre al ciclo, pero igualmente lo hace
- private static String ingTipo() {
- System.out.println("Ingrese tipo de envase");
- String tipo = scan.nextLine();
- while (tipo != "LATA") {
- System.out.println("Ingrese tipo de envase");
- tipo = scan.next();
- }
- return tipo;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement