Submitted by: Submitted by elaineglenn
Views: 138
Words: 328
Pages: 2
Category: Science and Technology
Date Submitted: 10/26/2012 11:31 AM
package inventoryofficesupplies;
import java.text.NumberFormat;
import java.util.Locale;
import java.util.Scanner;
/**
*
*
*/
public class InventoryOfficeSupplies {
private static boolean addAnotherItem;
private static String myItem;
private static Item ItemmyItem;
private static Object setItem;
private static Object addAnotherProduct;
private static String setName;
private static String myProduct;
private static String currency;
public static void main(String[] args, InventoryOfficeSupplies myInventoryOfficeSuppliesDisplay) {
Scanner input = new Scanner(System.in);
NumberFormat currency = NumberFormat.getCurrencyInstance(Locale.US);
Object addAnotherProduct = "Y";
addAnotherProduct = "Y";
InventoryOfficeSupplies myInventoryOfficeSupplies;
myInventoryOfficeSuppliesDisplay = new InventoryOfficeSupplies();
System.out.println();
System.out.println();
System.out.println("Welcome to Office Supply Inventory!");
System.out.println();
while (addAnotherItem = "Y".compareToIgnoreCase("Y") == 0);
{
ItemmyItem = new Item();
System.out.println();
System.out.print("Enter Item Name:");
setProduct.setProductName(input.nextLine());
System.out.print("Enter Product Number:");
setProduct.setProductNumber(input.nextLine());
System.out.print("Enter the Number of Units in Stock:");
setProduct.setUnitsinStock(input.nextLine());
System.out.print("Enter Item Unit Price($):");
setProduct.setUnitPrice(input.nextLine());
System.out.println();
System.out.print("Do You Wish to Enter Another Product(y/n)?");
addAnotherProduct = input.nextLine().substring(0, 1);
}
System.out.println();
System.out.println();...