-
Thomas Lapp authoredc949589e
Forked from
GOSSA JULIEN / P4a
40 commits ahead of the upstream repository.
MainLinkedListStdGet.java 436 B
package p4a;
import java.util.Random;
public class MainLinkedListStdGet {
public static void main(String[] args) {
Random rnd = new Random();
LinkedListStd<Integer> linkedList = new LinkedListStd<Integer>();
int nbOperation = Integer.parseInt(args[0]);
for (int i = 0; i < nbOperation; i++) {
linkedList.ajout(0, i);
}
for (int i = 0; i < nbOperation; i++) {
linkedList.acces(rnd.nextInt(nbOperation));
}
}
}