Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.IOException;
- public class Main
- {
- public static void main(String[] args) throws IOException {
- ProgLang pl = null;
- try {
- pl = new ProgLang(System.getProperty("user.home") + "/Programmers.tsv");
- } catch (Exception exc) {
- System.out.println("Wadliwy konstruktor: " + exc);
- }
- System.out.println("@3 Języki posortowane wg liczby programistów:");
- try {
- pl.getLangsMapSortedByNumOfProgs()
- .forEach((k,v)->System.out.println(k+ " = " + v));
- } catch (Exception exc) {
- System.out.println(exc);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement