Here the program I need help to straighten up below:
the Java error is right at the point is at the end of the program.
Expand|Select|Wrap|Line Numbers
- //week 6 Inventory3
- // by Tina Jones
- // IT 215
- // october 07/2007
- import java.util.Scanner;
- public class Inventory3
- {
- class restockfee3
- {
- //Inventoryprogrampart3
- // Created on October 5, 2007, 10:19 PM
- //To change this template, choose Tools | Template Manager and open the template in the editor.
- {
- // Creat a calculation for restock fee
- //Create a new instance of Inventoryprogrampart2
- // Create private varibles
- //Create a constructor Inventory2 varibles
- // private main method begins program execution
- // Create a new instance for class Inventory2
- // create a new instance for ProductGUI1
- class array1
- {
- public static void main ( String args[] )
- {
- // array of stock number
- product array []={ doll ,computer , car, list};
- //array of product
- number array[]={ 1 , 2 , 3 , 4};
- // array of item number
- value array []={ $29, $600, $23};
- // array of price
- stock array []={ 43436, 65656,76767};
- //array of stock number
- class Sortmethod1
- {
- // Create private varibles
- //Create a constructor sortmethod1 varibles
- // private main method begins program execution
- // Create a new instance for sortmethod1
- // create a new instance for arrayGUI1
- private String name; //sets varialbe
- private int Number; //sets inventory number
- private int units = Numbers ;// sets Unit number
- private double Stock = numbers; // sets the stock amount
- private double Price = dollars;//sets price with restock fee of 5%
- private double invPrice;
- //Create a constructor array list1 varibles
- // private main method begins program execution
- // Create a new instance for array list1
- // create a new instance for array listGUI1
- // getmethod for array list GUI
- private static void main ( String name, int number, int units, double stock, double price, double invprice[])
- {
- product name = name;// getproduct name
- item number = number;//getitem number
- units = number;// getunits number
- stock = number;// getstock number
- price = number;// getprice number
- restock fee= number;// getrestock fee
- Scanner input = new Scanner( System.in ); //user input
- // Create a sort method for product name array list
- System.out.printf("%s\n%s\n","use sort method for Product name array");
- System.out.printf("Please Enter Name of Product");
- String name = input.nextLine();
- // array of product
- // start array constructor
- System.out.printf("\nList of Products");
- System.out.printf("%s\n%s\n","use sort method for Item number array");
- System.out.printf("Please Enter Item number");//Needs be a number
- double number = input.nextDouble();
- System.out.printf("%s\n%s\n","use sort method for product price array");
- System.out.printf("Please Enter Product Price");//Needs be a number
- double price = input.nextDouble();
- // start array constructor
- //perform verious opreations of the data
- //create a list method for array
- // create a sort method for stock number array list
- System.out.printf("%s\n%s\n","use sort method for stock array");
- System.out.printf("Please Enter Stock Number");// Need be a number
- double number = input.nextDouble();
- // create a calculation for restock fee of 5%
- //start calculation constructor
- System.out.printf("%s\n%s\n","user enters a restock fee is: 5%");
- double fee = input.nextDouble();
- //Output Display
- System.out.printf("Product name:%s\n","name");
- System.out.printf("Item number:%s\n","number");
- System.out.printf("Item price:%s\n","price");
- System.out.printf("Stock number:%s\n","number");
- System.out.printf("use a sort method for array lists:%s\n","all array list a-z listings");
- System.out.printf("A Restock fee:%s\n","calculation fee");
- }// end sub public class sortmethod
- ) // end public class Inventory3
so far do you have any sugguestions how to improve my program?