public static void main(String[] args) { ArrayList colors = new ArrayList<>(); colors.add("Red"); colors.add("Green"); colors.add("Orange"); colors.add("White"); colors.add("Black"); //Element an spez. Index abrufen und in einer Variable speichern String firstElement = colors.get(0); System.out.println("First Element: " + firstElement); String element = colors.get(2); System.out.println("Specific Element: " + element); }