Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. necesito que si tipo == "LATA", no entre al ciclo, pero igualmente lo hace
  2.  
  3. private static String ingTipo() {
  4. System.out.println("Ingrese tipo de envase");
  5. String tipo = scan.nextLine();
  6. while (tipo != "LATA") {
  7. System.out.println("Ingrese tipo de envase");
  8. tipo = scan.next();
  9. }
  10. return tipo;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement