1: //GenericConstructor.java 2: //A non-generic class with a generic constructor. 4: class GenericConstructor 5: { 6: private double value; 8: public <T extends Number> GenericConstructor(T input) 9: { 10: value = input.doubleValue(); 11: } 13: public void showValue() 14: { 15: System.out.println("Value: " + value); 16: } 17: }