Just attempting this question I found in a past exam paper so that I can prepare for an upcoming Java examination.
Provide a generic class Pair for representing pair
Getters are broken
public thing getFirst() { return thing.first; } public thing getSecond() { return thing.second; }
thing should be replaced with this
thing
this