Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/03/2009, 11:24
black_palma
 
Fecha de Ingreso: diciembre-2006
Mensajes: 60
Antigüedad: 17 años, 4 meses
Puntos: 0
error? ayuda :/

Código:
        try{
            int proximo = scanner.nextInt();
            if(proximo>=100 || proximo==0){
                throw new Exception();
            }
        }catch(Exception e){
            System.out.println("Debes ingresar un valor del tipo int (del 1 al 100)");
            System.exit(0);
        }
        for(int i=0;i>=proximo;int++;){

        }
        html.close();
hola, tengo un problema en el código anterior :/
pasa que la variable proximo es seteada en el TRY y al llegar al loop dice que la variable no existe :S

alguien podria ayudarme? :P

gracias, saludos