import java.util.*; public class SimpleGenericsUsage { public static void main(String[]argv) { ArrayList fruits = new ArrayList(); fruits.add("Oranges"); fruits.add("Apples"); fruits.add("Pears"); System.err.println(fruits.size()+" fruits defined"); } }