Java tutorial
//package com.java2s; public class Main { public static <T> Object newInstance(Class<T> clazz) throws InstantiationException, IllegalAccessException { return clazz.newInstance(); } }