BUT2/DEV/DEV3.1/TP03_MisesEnPage/Q2Array.java

18 lines
312 B
Java
Raw Permalink Normal View History

2023-10-12 16:39:49 +02:00
import java.util.ArrayList;
import java.util.List;
public class Q2Array<T> {
private List<T> elements;
public Q2Array() {
elements = new ArrayList<>();
}
public void add(T element) {
elements.add(element);
}
public List<T> getListe() {
return elements;
}
}