I'm doing a simple BlackJack game on JAVA Eclipse Neon. I had a problem with this loop, and I really have no idea how to fix it. I already researched, but I still have that problem, I hope someone can help me with that while
and do
.
do{ // Open do
System.out.println("¿Cuánto dinero desea apostar?");
apuesta = entrada.nextInt();
if (apuesta < 0 || apuesta > dinero) { // Open if
System.out.println("Su apuesta debe ser mayor a 0 y menor a " + dinero + "pesos");
} // Close if
} // close do