Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
Showing
with 196 additions and 0 deletions
package p4a;
public class MainLinkedListPersoAddFin {
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);
}
}
}
package p4a;
import java.util.Random;
public class MainLinkedListPersoGet {
public static void main(String[] args) {
Random rnd = new Random();
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.acces(rnd.nextInt(nbOperation));
}
}
}
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);
}
}
}
package p4a;
public class MainLinkedListPersoRemoveFirstValue {
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 = 0; i < nbOperation; i++) {
arrayList.suppression(0);
}
}
}
File added
package p4a;
public class MainLinkedListStdAddDebut {
public static void main(String[] args) {
LinkedListStd<Integer> linkedList = new LinkedListStd<Integer>();
int nbOperation = Integer.parseInt(args[0]);
for (int i = 0; i < nbOperation; i++) {
linkedList.ajout(0, 0);
}
}
}
File added
package p4a;
public class MainLinkedListStdAddFin {
public static void main(String[] args) {
LinkedListStd<Integer> linkedList = new LinkedListStd<Integer>();
int nbOperation = Integer.parseInt(args[0]);
for (int i = 0; i < nbOperation; i++) {
linkedList.ajout(0, i);
}
}
}
File added
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));
}
}
}
package p4a;
public class MainLinkedListStdRemoveDecrementation {
public static void main(String[] args) {
ArrayListStd<Integer> arrayList = new ArrayListStd<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);
}
}
}
package p4a;
public class MainLinkedListStdRemoveFirstValue {
public static void main(String[] args) {
ArrayListStd<Integer> arrayList = new ArrayListStd<Integer>();
int nbOperation = Integer.parseInt(args[0]);
for (int i = 0; i < nbOperation; i++) {
arrayList.ajout(0, i);
}
for (int i = 0; i < nbOperation; i++) {
arrayList.suppression(0);
}
}
}
File added
package p4a;
public class MainTableauPersoAdd {
public static void main(String[] args) {
int nbOperation = Integer.parseInt(args[0]);
TableauPerso tab = new TableauPerso(nbOperation);
for (int i = 0; i < nbOperation; i++) {
tab.ajout(0, i);
}
}
}
package p4a;
import java.util.Random;
public class MainTableauPersoGet {
public static void main(String[] args) {
Random rnd = new Random();
int nbOperation = Integer.parseInt(args[0]);
TableauPerso tab = new TableauPerso(nbOperation);
for (int i = 0; i < nbOperation; i++) {
tab.ajout(0, i);
}
for (int i = 0; i < nbOperation; i++) {
tab.acces(rnd.nextInt(nbOperation));
}
}
}
File added
package p4a;
public class MainTableauStdAdd {
public static void main(String[] args) {
int nbOperation = Integer.parseInt(args[0]);
TableauStd tab = new TableauStd(nbOperation);
for (int i = 0; i < nbOperation; i++) {
tab.ajout(0, i);
}
}
}
File added
package p4a;
import java.util.Random;
public class MainTableauStdGet {
public static void main(String[] args) {
Random rnd = new Random();
int nbOperation = Integer.parseInt(args[0]);
TableauStd tab = new TableauStd(nbOperation);
for (int i = 0; i < nbOperation; i++) {
tab.ajout(0, i);
}
for (int i = 0; i < nbOperation; i++) {
tab.acces(rnd.nextInt(nbOperation));
}
}
}
File added