package superlist;

/**
 *
 * @author simonemacri
 */
public class Product {

    private String name;
    private int qty;
    private boolean done;

    /**
     * Costruttore vuoto.
     */
    public Product() {
    }

    /**
     * Costruttore personalizzato.
     *
     * @param name il nome del prodotto
     */
    public Product(String name) {
        this.name = name;
    }
    public Product(String name, int qty) {
        this.name = name;
        this.qty = qty;
    }
    
    public Product(String name, int qty, boolean done) {
        this.name = name;
        this.qty = qty;
        this.done = done;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getQty() {
        return qty;
    }

    public void setQty(int qty) {
        this.qty = qty;
    }

    
    @Override
    public String toString() {
        return qty+" "+this.name;
    }

}

@@ -376,24 +376,25 @@
 name;%0A    %7D%0A
+%0A
     public P
@@ -483,152 +483,8 @@
    %7D
-%0A    %0A    public Product(String name, int qty, boolean done) %7B%0A        this.name = name;%0A        this.qty = qty;%0A        this.done = done;%0A    %7D
 %0A%0A  
@@ -733,16 +733,142 @@
  %7D%0A%0A    
+public boolean isDone() %7B%0A        return done;%0A    %7D%0A%0A    public void setDone(boolean done) %7B%0A        this.done = done;%0A    %7D%0A
 %0A    @Ov
@@ -927,13 +927,17 @@
  qty
-+%22 %22+
+ + %22 %22 + 
 this

Update Product.java