public class TestNewClass <T> {

  static public void main(String[] args) {
    NewClass<String> first = new NewClass<String>("Janet", 2005);
    NewClass<Integer> second = new NewClass<Integer>(15);
    
   
    System.out.println("Contents of object first => " + first);
    first.setData("Maite");
    System.out.println("After modifying object first => "
                       + first);
    System.out.println("Result of getData on second=> " 
                     + second.getData());   
  } // end main

}  // end TestNewClass
