Skip to content
Snippets Groups Projects
Commit e02de7c4 authored by Yasin Aydogdu's avatar Yasin Aydogdu
Browse files

ajout java

parent 535fd823
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -43,6 +43,9 @@ public class analysePerformance {
else if(args[1]=="acces"){
Acces(tailleChoisie);
}
else if(args[1]=="supprimer"){
supprimer(tailleChoisie);
}
else{
System.out.println("Le 2eme argument n'est pas valide");
System.exit(0);
......@@ -68,4 +71,13 @@ public class analysePerformance {
}
return res;
}
//on supprime l'element
public static void supprimer(int taille){
for(int i =0 ; i<struct.size();i++){
if(struct.contains(taille)){
struct.remove(i);
}
}
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment