36 lines
804 B
Java
36 lines
804 B
Java
//MELIANI SAMY (TP1)
|
|
public class Deduction{
|
|
public static void main(String[] args) {
|
|
Deduction2 compte = new Deduction2();
|
|
compte.voir();
|
|
compte.crediter();
|
|
compte.crediter();
|
|
compte.crediter();
|
|
compte.crediter();
|
|
compte.crediter();
|
|
compte.vider();
|
|
compte.crediter();
|
|
compte.crediter();
|
|
compte.crediter();
|
|
compte.crediter();
|
|
compte.crediter();
|
|
compte.crediter();
|
|
compte.crediter();
|
|
compte.crediter();
|
|
compte.crediter();
|
|
compte.crediter();
|
|
System.out.println(compte.toString());
|
|
|
|
Deduction3 compte2 = new Deduction3();
|
|
compte2.crediter();
|
|
compte2.crediter();
|
|
compte2.crediter();
|
|
compte2.crediter();
|
|
compte2.crediter();
|
|
compte2.crediter();
|
|
compte2.crediter();
|
|
compte2.crediter();
|
|
compte2.crediter();
|
|
System.out.println(compte2.toString());
|
|
}
|
|
} |