Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Client extends Thread{
- private int nb;
- private String nom;
- private int montant;
- private Compte compte;
- Client(String nom, int nb, int montant, Compte compte) {
- this.nom= nom;
- this.nb = nb;
- this.montant=montant;
- this.compte=compte;
- }
- public void run() {
- System.out.println(nom+" va faire "+ nb +" dépots de "+montant + " €.");
- for (int i = 0; i<nb; i++) {
- compte.deposer(montant);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement