getClass () method. Simple! Now we pass a different datatype but thanks to generics the method behaves the same way! This is the magic of generics in Java.
確定! 回上一頁