Check out example codes for "java constructor genertic". It will help you in understanding the concepts better.

Code Example 1

public KeyValue(T k , E v) // No compile errors here :)
{
    setKey(k);
    setValue(v);
}

Learn ReactJs, React Native from akashmittal.com