package institucion;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class Estudiante {
private int id = 0;
private String nombreestudiante
= null; private String direccionestudiante
= null; private String codigoestudiante
= null; private int n = 0;
private String telefono
= null; public List<String> materiasdelestudiante = null; // Una lista de materias del estudainte//
this.materiasdelestudiante = new ArrayList<String>(); ////////
System.
out.
println("Nombre del estudiante: "); // Ingrese el Nombre// setNombreestudiante(lector.readLine());
if ( nombreestudiante.compareToIgnoreCase("XXXX")!= 0){
System.
out.
println("Codigo del estudiante: "); // Ingrese el ID // setCodigoestudiante(lector.readLine());
}
}
// -------------------- Metodos de Atributos ------------------- //
public String getNombre
() {return nombreestudiante
;} public void setNombreestudiante
(String nombreestudiante
) {this.
nombreestudiante = nombreestudiante
;}
public String getCodigoestudiante
() {return codigoestudiante
;} public void setCodigoestudiante
(String codigoestudiante
) {this.
codigoestudiante = codigoestudiante
;}
public String getDireccionestudiante
() {return direccionestudiante
;} public void setDireccionestudiante
(String direccionestudiante
) {this.
direccionestudiante = direccionestudiante
;} }
cGFja2FnZSBpbnN0aXR1Y2lvbjsKIAppbXBvcnQgamF2YS5pby5CdWZmZXJlZFJlYWRlcjsKaW1wb3J0IGphdmEuaW8uSU9FeGNlcHRpb247CmltcG9ydCBqYXZhLmlvLklucHV0U3RyZWFtUmVhZGVyOwppbXBvcnQgamF2YS51dGlsLkFycmF5TGlzdDsKaW1wb3J0IGphdmEudXRpbC5MaXN0OwogCnB1YmxpYyBjbGFzcyBFc3R1ZGlhbnRlIHsKIAogICBwcml2YXRlIGludCAgICAgICAgICAgICBpZCAgICAgICAgICAgICAgICAgICAgPSAwOwogICBwcml2YXRlIFN0cmluZyAgICAgICAgICBub21icmVlc3R1ZGlhbnRlICAgICAgPSBudWxsOwogICBwcml2YXRlIFN0cmluZyAgICAgICAgICBkaXJlY2Npb25lc3R1ZGlhbnRlICAgPSBudWxsOwogICBwcml2YXRlIFN0cmluZyAgICAgICAgICB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