@@ -0,0 +1,517 @@
+class Gen%3CT%3E %7B%0A T ob; %0A Gen(T o) %7B%0A ob = o;%0A %7D%0A T getob() %7B%0A return ob;%0A %7D%0A %0A void showType() %7B%0A System.out.println(%22Type of T is %22 +%0A ob.getClass().getName());%0A %7D%0A%7D%0Aclass GenDemo %7B%0A public static void main(String args%5B%5D) %7B%0A Gen%3CInteger%3E iOb;%0A iOb = new Gen%3CInteger%3E(88);%0A iOb.showType();%0A int v = iOb.getob();%0A System.out.println(%22value: %22 + v);%0A System.out.println();%0A Gen%3CString%3E strOb = new Gen%3CString%3E (%22Generics Test%22);%0A strOb.showType();%0A String str = strOb.getob();%0A System.out.println(%22value: %22 + str);%0A %7D%0A%7D%0A

Create generics.java