Methods Of Extracting Li Ne

I wonder why this answer has so many upvotes i guess one of the reasons is that the question was changed after this answer was posted java.Lang.Class does not override object.Equals, which means that for two non-null cls1 and cls2 cls1.Equalscls2 is true if and only if cls1 cls2 is true.Which means that the proposed approach is the same that the topic starter described.