Answers for "crear objetos automaticamente java"

0

crear objetos automaticamente java

public ArrayList crearColegio(int numeroAlumnos ) {
ArrayList al = new ArrayList();

for ( int i=0; i < numeroAlumnos; i++) {
Alumno alumno = new Alumno();
al.add( alumno );
}
return al;
}
Posted by: Guest on October-01-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language