help array set null or delete
hai.., I have problem of setting the array found to null. I want to set the found array(result of the search of the item to be stock out) to null if the number of stock to out is equal to the number of the stocks in of the product.
Chocolate 001 $5.50 12(stocks in)
Enter Number of stock out: 12
Number of stock out: 12
//so the Chocolate now will be out of stock and I want to delete it so that the user can input another product
heres my code.
public ProductInfo computeStockOut() //computing the total amount of stock
System.out.print("Enter Number Of Stock to Out: ");
System.out.println("Total Amount is: "+totalAmount);
System.out.println("You Enter Number greater than your stock products");