fin tp01
This commit is contained in:
25
DEV3.2/TP01/04_Association/Association.java
Normal file
25
DEV3.2/TP01/04_Association/Association.java
Normal file
@@ -0,0 +1,25 @@
|
||||
public class Association<E> {
|
||||
|
||||
private E element;
|
||||
private int frequence;
|
||||
|
||||
public E getElement() {
|
||||
return this.element;
|
||||
}
|
||||
|
||||
public void setElement(E element) {
|
||||
this.element = element;
|
||||
}
|
||||
|
||||
public int getFrequence() {
|
||||
return this.frequence;
|
||||
}
|
||||
|
||||
public void setFrequence(int frequence) {
|
||||
this.frequence = frequence;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "Element : " + this.element + " / Fréquence : " + frequence;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user