-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestTelevoto.java
More file actions
35 lines (30 loc) · 1.12 KB
/
TestTelevoto.java
File metadata and controls
35 lines (30 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package prg.es3;
public class TestTelevoto{
public static void main(String[] args) {
Televoto tlv = new Televoto();
tlv.printPartecipanti();
tlv.printVotanti(); //inizialmente vuoto
//ACQUISIZIONE VOTI:
tlv.getVote("0000000000", "Lazza");
tlv.getVote("0000000000", "Tananai");
tlv.getVote("0000000000", "Fedez");
tlv.getVote("0000000000", "Fedez");
tlv.getVote("0000000000", "Pinguini Tattici Nucleari");
tlv.getVote("0000000000", "Psicologi"); //sesto tentativo di inserire un voto
tlv.getVote("034234 343", "Coez");
tlv.getVote("3394848 34", "Buffon"); //voto non valido
tlv.getVote("3324 42 4 ", "Marco Mengoni");
tlv.getVote("433 44 33 ", "Rhove");
tlv.getVote("44 4 4 4 4", "Franco126");
tlv.getVote("433 44 33 ", "Franco126");
tlv.getVote("433 44 33 ", "Psicologi");
tlv.getVote("1234567890", "Luche'");
tlv.getVote("1234567890", "Tananai");
tlv.getVote("44 4 4 4 4", "Maneskin");
//RISULTATI:
System.out.println("\n\nRISULTATI: ");
System.out.println("Totale voti: " + tlv.totaleVotiRegistrati());
tlv.printPartecipanti();
tlv.printVotanti();
}
}