package productQuantity doesnt exist

int minusQ = Integer.parseInt(new productQuantity.getBalance()) - Integer.parseInt(quant.getText());

It said package productQuantity doesn't exist. how can i rid this error. please need help.

Answers


Delete "new" because I suggest that "productQuantity" is an existing variable. If I am wrong why is your class starting with lower letter ?

int minusQ = Integer.parseInt(productQuantity.getBalance()) - Integer.parseInt(quant.getText());

OR

int minusQ = Integer.parseInt(new ProductQuantity().getBalance()) - Integer.parseInt(quant.getText());

Need Your Help

How to do an average of a dynamic range in Excel? (VBA?)

excel excel-2007 excel-formula excel-2010

I have a list in Excel with basically two columns: Date and Value.