Tema: while
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/05/2014, 17:56
shikamarucb
 
Fecha de Ingreso: febrero-2014
Mensajes: 107
Antigüedad: 10 años, 2 meses
Puntos: 0
while

Hola a todos estoy empezando a programar en java y tengo un problemilla tengo este codigo pero no se bien como escanear un caracter:
Código Java:
Ver original
  1. import java.io.StringWriter;
  2. import java.util.Scanner;
  3.  
  4.  
  5. public class estudian_tes {
  6.       public static void main(String[] ar){
  7.           int numE, a,b,c,res;
  8.           String nom;
  9.          
  10.           char r;
  11.          
  12.           Scanner nombre = new Scanner(System.in);
  13.           Scanner nota = new Scanner(System.in);
  14.           Scanner siono=new Scanner(System.in);
  15.           System.out.print("Desea procesar un estudiante");
  16.           r = siono.next();
  17.          
  18.           while(r == 's'){
  19.              
  20.               System.out.print("digite nombre estudiante");
  21.               nom = nombre.next();
  22.              
  23.                 System.out.print("Digite la primera nota");
  24.                 a=nota.nextInt();
  25.                 System.out.print("Digite la segunda nota");
  26.                 b=nota.nextInt();
  27.                 System.out.print("Digite la tercera nota");
  28.                 c=nota.nextInt();
  29.                
  30.                 res=(a+b+c)/3;
  31.                
  32.                 if(res>=6){
  33.                     System.out.print("Estudiante"+ nom);
  34.                     System.out.print("Aprobado");
  35.                 }else{ System.out.print("Estudiante"+ nom); System.out.print("reprobado");}
  36.                
  37.                   System.out.print("Desea procesar un estudiante");
  38.                   r = siono.next();
  39.           }
  40.          
  41.       }
  42. }


y tengo una pregunta no se que significa esto
Código Java:
Ver original
  1. (String[] ar){}