Login Register






interfaces help filter_list
Author
Message
RE: interfaces help #20
ok so if i do this public String toString(){
}
netbeans give me an error this error is fixed by adding @Override before it i have no idea what it does !!
now inside the toString() i need to write
retun name;(name is already a String)
now i tried String purchasePrice=purchasePrice.toString();
i get an error int cannot be dereferenced i have no idea what's wrong here
[Image: blackeagle_zps6ad86521.gif]

Reply





Messages In This Thread
interfaces help - by blackeagle - 11-25-2013, 11:51 PM
interfaces help - by blackeagle - 11-25-2013, 11:51 PM