I Created a class and named it "PaymentObject"

```
public class PaymentObject implements Serializable {

        double precentsValue;
 String PrecentsText;

@Override
public String toString() {
    return PrecentsText;
}

public PaymentObject(String paymenttext,double paymentvalue)
{
   this.PrecentsText=paymenttext;
this.precentsValue=paymentvalue;

}
public String getPrecentsText(){return PrecentsText;}
public void setPrecentsText(String percents){this.PrecentsText=percents;}
public double getPrecentsValue(){return precentsValue;}
public void setPrecentsValue(double percentsvalue) {this.precentsValue=percentsvalue;}

}

```

In my mainactivity class I want to initialize a new **empty** object of PaymentObject type
and then set values to the object .
 like this :

```
PaymentObject po = new PaymentObject();
    po.setPrecentsValue(1);
    po.setPrecentsText("100%");

```

but when I do that there is an Error "PaymentObject (string,double) in PaymentObject cannot be applied to ()"
(thas work only if I add the values when I declare on the new object )
but I want to open an **empty** object and just then set the values ...
what should I do?
Thanks!