comefrom: <qiyuangong>692_Top_K_Frequent_Words_1.java
code: public List<String> topKFrequent(String[] words, int k) {
          Map<String, Integer> count = new HashMap();
          for (String word: words) {
              count.put(word, count.getOrDefault(word, 0) + 1);
          }
          List<String> candidates = new ArrayList(count.keySet());
          Collections.sort(candidates, (w1, w2) -> count.get(w1).equals(count.get(w2)) ?
                  w1.compareTo(w2) : count.get(w2) - count.get(w1));
  
          return candidates.subList(0, k);
      }
masked: public List < String > var_0 ( String [ ] var_1 , int var_2 ) {
    Map < String , Integer > var_3 = new HashMap ( ) ;
    for ( String var_4 : var_1 ) {
      var_3 . put ( var_4 , var_3 . getOrDefault ( var_4 , 0 ) + 1 ) ;
    }
    List < String > var_5 = new ArrayList ( var_3 . keySet ( ) ) ;
    Collections . sort ( var_5 , ( var_6 , var_7 ) -> var_3 . get ( var_6 ) . equals ( var_3 . get ( var_7 ) ) ? var_6 . compareTo ( var_7 ) : var_3 . get ( var_7 ) - var_3 . get ( var_6 ) ) ;
    return var_5 . subList ( 0 , var_2 ) ;
  }
  