Java Generic first example