2 Replies Latest reply on Feb 26, 2013 2:40 PM by Murray9654

    basic problem?

      Hi while going through docs i found the following method
      public static <K, V> boolean compare(Pair<K, V> p1, Pair<K, V> p2) {
              return p1.getKey().equals(p2.getKey()) &&
      I am not able to understand why they have defined <K,V> infront of the return type boolean? how to understand this and what is the meaning of this?

      Edited by: Muralidhar on Feb 26, 2013 4:53 PM