daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Dec 16th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  public static int getCountTheSameFirstName(HashMap<String, String> map, String name) {
  2.         //напишите тут ваш код
  3.         return (int) map.values().stream()
  4.                 .filter(value -> name.equals(value))
  5.                 .count();
  6.     }
  7.  
  8.     public static int getCountTheSameLastName(HashMap<String, String> map, String lastName) {
  9.         //напишите тут ваш код
  10.         return map.containsKey(lastName) ? 1:0;
  11.  
  12.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top