I have been seeing the following methods declaration but I do not understand how <K, V> and <T> are being used.
What does public <K, V> does in this method?
public <K, V> void add(K k, V v)
What does static <T> does in this method?
public static <T> int countGreaterThan(T[] anArray, T elem)