
/**
 * Phone
 * 
 * @author Matthew Cheng
 * @version 
 */
public class Phone
{
    private String brandName = "UNKNOWN", modelType = "UNKNOWN", ownerName = "UNKNOWN";
    private int batteryLife = 0;
    private double spaceLeft = 0;
    
    public Phone()
    {

    }

    public int getBatteryLife()
    {
        return batteryLife;
    }

    public void setPhone(String owner, String brand, String model, int battery, int space)
    {
        brandName = brand;
        modelType = model;
        ownerName = owner;
        batteryLife = battery;
        spaceLeft = space;
    }

    public String toString()
    {
        return "This phone belongs to" + ownerName + " and is a " + modelType + " made by " + brandName + " it has " + batteryLife + "% battery left and has " + spaceLeft + " Gb of storage space left.";
    }

}

@@ -1,9 +1,8 @@
-%0A
 /**%0A * P
@@ -258,23 +258,35 @@
 )%0A    %7B%0A
+        
 %0A    %7D%0A
+    
 %0A    pub
@@ -293,278 +293,1239 @@
 lic 
-int getBatteryLife()%0A    %7B%0A        return batteryLife;%0A    %7D%0A%0A    public void setPhone(String owner, String brand, String model, int battery, int space)%0A    %7B%0A        brandName = brand;%0A        modelType = model;%0A        ownerName = owner;%0A        batteryLife = battery;
+Phone(String owner, String brand, String model, int battery, double space)%0A    %7B%0A        brandName = brand;%0A        modelType = model;%0A        ownerName = owner;%0A        batteryLife = battery;%0A        spaceLeft = space;%0A    %7D%0A%0A    public void setPhone(String owner, String brand, String model, int battery, double space)%0A    %7B%0A        brandName = brand;%0A        modelType = model;%0A        ownerName = owner;%0A        batteryLife = battery;%0A        spaceLeft = space;%0A    %7D%0A    %0A    public String getBrand()%0A    %7B%0A        return brandName;%0A    %7D%0A    %0A    public void setBrand(String brand)%0A    %7B%0A        brandName = brand;%0A    %7D%0A    %0A    public String getModel()%0A    %7B%0A        return modelType;%0A    %7D%0A    %0A    public void setModel(String model)%0A    %7B%0A        modelType = model;%0A    %7D%0A    %0A    public String getOwner()%0A    %7B%0A        return ownerName;%0A    %7D%0A    %0A    public void setOwner(String owner)%0A    %7B%0A        ownerName = owner;%0A    %7D%0A        %0A    public int getBatteryLife()%0A    %7B%0A        return batteryLife;%0A    %7D%0A    %0A    public void setBatteryLife(int battery)%0A    %7B%0A        batteryLife = battery;%0A    %7D%0A    %0A    public double getSpace()%0A    %7B%0A        return spaceLeft;%0A    %7D%0A    %0A    public void setSpace(double space)%0A    %7B
 %0A   

Update Phone.java