blob: bbafbcc63675a267395c113eb44981c400f482c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package tp2;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
int nbetu= 20000;
Promotion prom = new Promotion(2017);
for ( int i = 0; i < nbetu; i ++) {
prom.Inscrire(NameGenerator.generateName()+" "+NameGenerator.generateName(),/*date,*/ (int)(Math.random()*(1-0)),(int)(Math.random()*(3-0)),(double)(Math.random()*(20-0)),(double)(Math.random()*(20-0)),(double)(Math.random()*(20-0)));
}
ArrayList<Etudiant> nofranco = prom.nouveauxInscritsNonFrancophones();
for (int i = 0 ; i < nofranco.size(); i ++) {
System.out.println(nofranco.get(i).toString());
}
ArrayList<Etudiant> boss = prom.majors();
for (int i = 0 ; i < boss.size(); i ++) {
System.out.println(boss.get(i).toString());
}
}
}
|