Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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;
}
 
PREVIOUS NEXT
Tagged: #crear #objetos #automaticamente #java
ADD COMMENT
Topic
Name
2+3 =