2025-09-26 08:56:23 +02:00
|
|
|
public class Main {
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
Database database = new Database();
|
|
|
|
|
2025-09-26 13:21:58 +02:00
|
|
|
Votes votesForItaly = database.getVotesFromCompetitor("Italie");
|
2025-09-26 08:56:23 +02:00
|
|
|
|
2025-09-26 13:21:58 +02:00
|
|
|
System.out.println("Vote " + votesForItaly.getCompetitorName() + " :");
|
|
|
|
for(Vote vote : votesForItaly.getVoters()) {
|
|
|
|
System.out.println(vote.getVoterName() + " " + vote.getPoints());
|
2025-09-26 08:56:23 +02:00
|
|
|
}
|
|
|
|
|
2025-09-26 13:21:58 +02:00
|
|
|
System.out.println("-------------------");
|
|
|
|
System.out.println("Total " + votesForItaly.getTotalPoints());
|
2025-09-26 08:56:23 +02:00
|
|
|
}
|
|
|
|
}
|