Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package tp4;
- import java.util.ArrayList;
- public class Promotion{
- private ArrayList<Etudiant> collection;
- private int annee;
- public Promotion(){
- annee=0;
- collection = new ArrayList<Etudiant>();
- }
- public Promotion(int annee){
- this.annee=annee;}
- public void set_annee(int annee){
- this.annee=annee;
- }
- public void set_Collection(ArrayList<Etudiant> collection){
- this.collection = collection;
- }
- public ArrayList<Etudiant> get_collection(){
- return collection;
- }
- public int get_annee(){
- return annee;
- }
- public Etudiant iemeEtudiant(int i){
- return collection.get(i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement