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

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