package de.university.reutlingen.aufgabe2.a2;

import java.util.ArrayList;
import de.university.reutlingen.aufgabe2.a2.ProductDescription;

public class Main {

	public static void main(String[] args) {
		/*
		 * this is a hack. Should not do, just for save heaven. Looks horrible
		 * http://www.angelikalanger.com/GenericsFAQ/FAQSections/ParameterizedTypes.html#FAQ105
		 */

		Produkt<ProductDescription>[] products = new Produkt[1];
		products[0] = new Produkt<ProductDescription>(new ProductDescription("Adobe kostet auf NYSE ", "5645.3666 "),56);
		for (Produkt<ProductDescription> i : products) {
			System.out.println(i.getProduktBeschreibung() + " "+  i.getProduktPreis());
		}
		
		System.out.println("");
		
		// Teacher basically wants create arraylist and put there Produkt object
		ArrayList<Produkt<ProductDescription>> produktLists = new ArrayList<>();
		ProductDescription pd = new ProductDescription("Adobe ist besser als Apple. NYSE: ", "564.5146");
		produktLists.add(new Produkt<ProductDescription>(pd,0)); // 0 kommt von double, wird nicht gezeigt.

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

	}

}

@@ -561,16 +561,362 @@
 ),56);%0D%0A
+%09%09products%5B1%5D = new Produkt%3CProductDescription%3E(new ProductDescription(%22Adobe CS6 - Dreamweaver is the best. Will cost you %22, 651.33);%0D%0A%09%09products%5B2%5D = new Produkt%3CProductDescription%3E(new ProductDescription(%22Microsoft costs %22, 651.33);%0D%0A%09%09products%5B3%5D = new Produkt%3CProductDescription%3E(new ProductDescription(%22Apple will make iTV %22, 651.33);%0D%0A%09%09%0D%0A
 %09%09for (P
@@ -1435,16 +1435,115 @@
 zeigt.%0D%0A
+%09%09produktLists.add(new Produkt%3CProductDescription%3E(new ProductDescription(%22I love Trees%22) ,0));%0D%0A%09%09
 %0D%0A%09%09for 

Update Main.java