java-scuola/7.x/P7.1,2,3,4,5 Purse/PurseTester.java

21 lines
712 B
Java
Raw Normal View History

2023-01-10 16:51:40 +01:00
public class PurseTester {
public static void main(String[] args) {
Purse borsellino = new Purse(50);
Purse altroBorsellino = new Purse(50);
borsellino.addCoin("Test1");
borsellino.addCoin("Test1");
borsellino.addCoin("Test1");
borsellino.addCoin("Test");
altroBorsellino.addCoin("Test");
altroBorsellino.addCoin("Test1");
altroBorsellino.addCoin("Test1");
altroBorsellino.addCoin("Test1");
System.out.println(borsellino.sameCoins(altroBorsellino));
System.out.println(borsellino.toString());
System.out.println(altroBorsellino.toString());
}
}