Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/10/2014, 00:38
Avatar de Profesor_Falken
Profesor_Falken
 
Fecha de Ingreso: agosto-2014
Ubicación: Mountain View
Mensajes: 1.323
Antigüedad: 9 años, 8 meses
Puntos: 182
Respuesta: variable ... might not have been initialized

Buenas,
La variables deben ser siempre explicitamente inicializadas antes de su uso cuando se declaran en ambito local.

http://docs.oracle.com/javase/tutori...datatypes.html
Cita:
Local variables are slightly different; the compiler never assigns a default value to an uninitialized local variable. If you cannot initialize your local variable where it is declared, make sure to assign it a value before you attempt to use it. Accessing an uninitialized local variable will result in a compile-time error.
En tu caso, no inicializas la variable continuar, y esta puede llegar hasta la instruccion
while (continuar == true);
Sin haber sido inicializada, ya que que le asignas el valor solo en ciertas condiciones.

Un saludo
__________________
If to err is human, then programmers are the most human of us