How To Solve Diamond Problem In Java