Java Generics

Back To Java Index


1. Program to take an array of strings and convert it to ArrayList of Strings - Code
2. Program to take arraylist of string and convert it to array of strings - Code
3. Program to convert array of integers to arraylist of Double objects after dividing integers with 2 - Code
4. Program to demonstrate generic class with single type parameter - Code
5. Program to demonstrate another example generic class with single type parameter rectangle class - Code