import java.util.*;

class Example<E> {
	E[] array;
	Example() { array = newArray(10); }
	
	static <E> E[] newArray(int length, E... array) {
		return Arrays.copyOf(array, length);
	}
	
	public static void main(String[] args) {
		Example<String> e = new Example<>();
		
		try {
			String[] s = e.array;
		} catch(Exception x) {
			x.printStackTrace(System.out);
		}
	}
}