Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. import java.io.IOException;
  2. public class Main
  3. {
  4. public static void main(String[] args) throws IOException {
  5. ProgLang pl = null;
  6. try {
  7. pl = new ProgLang(System.getProperty("user.home") + "/Programmers.tsv");
  8. } catch (Exception exc) {
  9. System.out.println("Wadliwy konstruktor: " + exc);
  10. }
  11.  
  12. System.out.println("@3 Języki posortowane wg liczby programistów:");
  13. try {
  14. pl.getLangsMapSortedByNumOfProgs()
  15. .forEach((k,v)->System.out.println(k+ " = " + v));
  16. } catch (Exception exc) {
  17. System.out.println(exc);
  18. }
  19.  
  20.  
  21. }
  22.  
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement