Skip to content
Snippets Groups Projects
MainArrayListPersoRemoveFirstValue.java 382 B
Newer Older
package p4a;

public class MainArrayListPersoRemoveFirstValue {
	public static void main(String[] args) {
		LinkedListPerso<Integer> linkedList = new LinkedListPerso<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.suppression(0);
		}
	}
}