RUN PERSONA

import java.util.Scanner;
public class Estudiante{
public static void main(String[]args){
byte edad;
double notas[];
}
String getNombre(){
return nombre;
}
byte getEdad(){
return edad;
}
[]double getNotas(){
return notas;

}


public class RunPersona{
public static void main(String args[]){
per=new Persona();
System.out.println("digite el nombre");
String nombre=sc.next();
per.setNombre(nombre);

System.out.println("digite la edad");
Byte edad=sc.nextByte();
per.setEdad(ed);

doublenota[]=new double [3]
for (int i=0; i<nota.length; i++){
System.out.println("digite la nota"+i);
nota[i]=sc.nextDouble();
}

per.setNotas(nota);
nombre=per.getNombre();
System.out.print(per.getNombre());
SYstem.out.print(mombre);

ed.setEdad();
System.out.print(edad);

nota=per.getNotas();
for (int i=0; i<nota.length; i++){
System.out.print(nota[i]);


}
}
}
}

No hay comentarios:

Publicar un comentario