exo 4 fin du tp generecite

This commit is contained in:
EmmanuelTiamzon
2025-11-07 17:03:40 +01:00
parent 1ccfe90def
commit baa90530f9
2 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
public class Association<E> {
private E element;
private int frequence;
public Association(E element, int frequence) {
this.element = element;
this.frequence = frequence;
}
public E getElement() {
return element;
}
public void setElement(E elt) {
this.element = elt;
}
public int getFrequence() {
return frequence;
}
public void setFrequence(int f) {
this.frequence = f;
}
@Override
public String toString() {
return "Association [element=" + element + ", frequence=" + frequence + "]";
}
}