public class Stock
{
public static void main (String[] args)
{
int WBNo,
balance,
qtyIn,
qtyOut,
qtySold,
invNo;
double
unitPrice,
Total;
System.out.println("Enter the W/B Number: " + WBNo);
System.out.println("Enter the Qty In: " + qtyIn);
System.out.println("Enter the Qty Out: " + qtyOut);
balance = qtyIn - qtyOut;
System.out.println("Blance " + balance);
System.out.println("Enter the quantity sold: " + qtySold);
System.out.println("Enter the invoice number: " + invNo);
System.out.println("enter the unit price: " + unitPrice);
qtySold = parseInt(qtySold);
qtySold = qtySold * unitPrice;
System.out.println("Total is: " + Total);
}
}
I kneed to know why I am doing wroing shoud get and set statement, I
keed to know how to fix this problem