SHARE
TWEET

Untitled

a guest Feb 14th, 2020 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package tp4;
  2. import java.util.ArrayList;
  3.  
  4. public class Promotion{
  5.     private ArrayList<Etudiant> collection;
  6.    
  7.     private int annee;
  8.  
  9.     public Promotion(){
  10.         annee=0;
  11.  
  12.         collection = new ArrayList<Etudiant>();
  13.     }
  14.  
  15.     public Promotion(int annee){
  16.     this.annee=annee;}
  17.  
  18.     public void set_annee(int annee){
  19.         this.annee=annee;
  20.     }
  21.  
  22.     public void set_Collection(ArrayList<Etudiant> collection){
  23.         this.collection = collection;
  24.     }
  25.  
  26.     public ArrayList<Etudiant> get_collection(){
  27.         return collection;
  28.     }
  29.  
  30.     public int get_annee(){
  31.         return annee;
  32.     }
  33.  
  34.     public Etudiant iemeEtudiant(int i){
  35.         return collection.get(i);
  36.     }
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top