// Generische Programmierung: Festlegung // des gewünschten Datentyps als Parameter! import java.util.ArrayList; public class ArrayListBeispiel { public static void main(String[] args){ String[] words = { "Rot", "Grün", "Blau", "Gelb", "Lila" }; ArrayList al = new ArrayList(); for(int i=0; i