all (flemme)

This commit is contained in:
2026-02-10 17:46:27 +01:00
parent ef6ca77dc6
commit e8a6bb9959
64 changed files with 1824 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
public class Main {
public static void main(String[] args) {
Database database = new Database();
Votes votesForItaly = database.getVotesFromCompetitor("Pays-Bas");
System.out.println("Vote " + votesForItaly.getCompetitorName() + " :");
for(Vote vote : votesForItaly.getVoters()) {
System.out.println(vote.getVoterName() + " " + vote.getPoints());
}
System.out.println("-------------------");
System.out.println("Total " + votesForItaly.getTotalPoints());
database.close();
}
}