Search
 
SCRIPT & CODE EXAMPLE
 

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;
}
Comment

PREVIOUS NEXT
Code Example
Java :: java sql query with parameters 
Java :: how to use user uid in android 
Java :: convert a int to string in java 
Java :: Java Method Return Type 
Java :: android textview center align text programmatically 
Java :: HOW TO PARSE a string into a number in java 
Java :: arrays.copy 2d array 
Java :: set view layout params android 
Java :: Java for and while loops 
Java :: mouselistener in java 
Java :: java decompiler 
Java :: greatest element in array in java 
Java :: what is inflater in android 
Java :: declaration and definition of array in java 
Java :: java substring based on delimiter 
Java :: java string get ith char 
Java :: java extends 
Java :: java remove first character 
Java :: array to string java 
Java :: copying primitive array to arraylist in java 
Java :: centos 8 install java 16 
Java :: hashmaps java 
Java :: java swing get frame size 
Java :: java list 
Java :: java generics type 
Java :: initialize hashmap java 
Java :: java queue implementation 
Java :: java max value between two numbers 
Java :: how to disable screenshot in react native 
Java :: maximum arrays size in java 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =