daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Feb 17th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public List<Pair> two_list_dictionary(List<K> lst1, List<V> lst2) {
  2.     List<Pair> mergedList = new List<Pair>();
  3.     for (int i = 0; i < Math.max(lst1.size(), lst2.size()); i++) {
  4.         K key;
  5.         V value;
  6.         key = lst1.get(i);
  7.         value = lst2.get(i);
  8.         mergedList.add(new Pair(key, value));
  9.     }
  10.     return mergedList;
  11. }
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