Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.util.ArrayList;
- import java.util.Arrays;
- import java.util.Comparator;
- import java.util.List;
- import java.util.Scanner;
- import java.util.stream.Collectors;
- public class VotingTest {
- public static void main(String[] args) {
- Voting voting = new Voting();
- System.out.println("=== Reading votes ===");
- int count = voting.readVotes(System.in);
- System.out.println("Read items count: " + count);
- System.out.println(String.format("=== Rang list ordered by name, ASC"));
- voting.rangList(System.out, "name", "ASC");
- System.out.println(String.format("=== Rang list ordered by average, DESC"));
- voting.rangList(System.out, "average", "DESC");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement