package com.example.barte_000.chopin;

import java.util.List;

/**
 * Created by barte_000 on 19.11.2016.
 */

public class Offer {
    static List<Offer> l;
    String name;
    String address;
    int price;
    int MaxLimit;

    Offer(String name, String address, int price, int MaxLimit){
        this.name = name;
        this.address = address;
        this.price = price;
        this.MaxLimit = MaxLimit;
        AddToList(this);
    }

    private void AddToList(Offer o){
        l.add(o);
    }
}

@@ -32,16 +32,44 @@
 hopin;%0A%0A
+import java.util.ArrayList;%0A
 import j
@@ -83,16 +83,16 @@
 l.List;%0A
-
 %0A/**%0A * 
@@ -164,16 +164,21 @@
  static 
+Array
 List%3COff
@@ -509,16 +509,16 @@
 fer o)%7B%0A
-
         
@@ -532,11 +532,277 @@
 );%0A    %7D
+%0A%0A    private void initializeData()%7B%0A        l = new ArrayList%3COffer%3E();%0A        l.add(new Offer(%22Emma Wilson%22, %2223 years old%22, 1,1));%0A        l.add(new Offer(%22Lavery Maiss%22, %2225 years old%22, 2,2));%0A        l.add(new Offer(%22Lillie Watts%22, %2235 years old%22, 3,3));%0A    %7D
 %0A%7D%0A

add method init data for sample