Skip to content
Snippets Groups Projects
Forked from GOSSA JULIEN / P4a
34 commits ahead of the upstream repository.
MainLinkedListPersoRemoveDecrementation.java 385 B
package p4a;

public class MainLinkedListPersoRemoveDecrementation {
	public static void main(String[] args) {
		ArrayListPerso<Integer> arrayList = new ArrayListPerso<Integer>();
		int nbOperation = Integer.parseInt(args[0]);
		
		for (int i = 0; i < nbOperation; i++) {
			arrayList.ajout(0, i);
		}
		for (int i = nbOperation-1; i >= 0; i--) {
			arrayList.suppression(i);
		}
	}
}