public class GenericClass9B { private T t; public void add(T t){ this.t = t; } public T get(){ return t; } public static void main(String[] args){ GenericClass9B rhombus = new GenericClass9B(); GenericClass9B circle = new GenericClass9B(); rhombus.add(33); circle.add(16.9); System.out.println(rhombus.get()); System.out.println(circle.get()); } }