package de.university.reutlingen.aufgabe2.a3;

import java.util.ArrayList;

import de.university.reutlingen.aufgabe2.a3.ProductDescription.PriceLevel;


public class Main {

	public static void main(String[] args) {
		/*
		 * this is a hack. Should not do, just for save heaven.
		 * 1 Possibility
		 * http://www.angelikalanger.com/GenericsFAQ/FAQSections/ParameterizedTypes.html#FAQ105
		 */
		Produkt<String>[] products = new Produkt[1];
		products[0] = new Produkt<String>("Hate Apple", PriceLevel.EXCLUSIVE);
		for (Produkt<String> i : products) {
			System.out.println(i.getProduktBeschreibung() + " "+  i.getProduktPreis());
		}
		
		System.out.println("");
		
		/*
		 * Teacher basically wants create arraylist and put there Product object
		 * 2 Possibility 
		 */
		ArrayList<Produkt<String>> produktLists = new ArrayList<>();
		produktLists.add(new Produkt<String>("I have bought Apple for ", PriceLevel.MEDIUM));

		for (Produkt<String> g : produktLists) {
			System.out.println(g.getProduktBeschreibung()+ " " + g.getProduktPreis());
		}

	}

}

@@ -487,16 +487,18 @@
 tring%3E(%22
+I 
 Hate App
@@ -526,16 +526,159 @@
 SIVE);%0D%0A
+%09%09products%5B1%5D = new Produkt%3CString%3E(%22I Hate Apple%22, PriceLevel.LOW);%0D%0A%09%09products%5B2%5D = new Produkt%3CString%3E(%22I Hate Apple%22, PriceLevel.MEDIUM);%0D%0A
 %09%09for (P
@@ -1092,16 +1092,97 @@
 IUM));%0D%0A
+%09%09produktLists.add(new Produkt%3CString%3E(%22I read the Verge %22, PriceLevel.LOW));%0D%0A%0D%0A
 %0D%0A%09%09for 

Update Main.java