Professional Documents
Culture Documents
Tpjava
Tpjava
NOM :ikram kourtasse
Exercice1
package entreprise;
super();
this.nombEmploye = nombEmploye;
this.capital = capital;
this.nom = nom;
this.mission = mission;
return mission;
return capital;
return nombEmploye;
}
public void setNombEmploye(int nombEmploye) {
this.nombEmploye = nombEmploye; }
this.capital = capital;
return nom;
return mission;
this.mission = mission;
try{
}catch(SecretMissionException a){
}try{
}catch(NomProfitException b){
}}}}
package entreprise;
t[0] = Micro;
t[1] = Ford;
t[2] = CIA;
t[3] = CroixRouge;
Entreprise.tousLesEntreprises(t);}}
package entreprise;
package entreprise;
package entreprise;
Exercice2
package toutou;
if (n == null)
this.nom = n;
if (np < 0)
this.nombrePuces = np;
package toutou;
try {
catch (IllegalArgumentException e) {
Exercice3 :
main : debut
methodeA : debut
methodeA : appel de methodeB methodeB : debut
methodeB : fin
methodeA : fin
main : fin
Exercice4 :
int pos;
TabTrie(){
pos = 0;
int i = pos;
try{ tab[pos] = o;
tab[i-1] = tab[i];
tab[i] = temp;
i--;
} pos++;
String s = "[";
s += "]\n";
return s; } }
this.x = x; this.y = y; }
} };
return (c1.x > c2.x) || ((c1.x == c2.x) && (c1.y > c2.y)); }
} System.out.println(t.toString()); } };