1 Java programming error that when fixed creates 12 new errors
Ok I have an error that says:Desktop\Inventory Program\Printer.java:27: ';' expected
          Black ink.showInventory()...Everytime I fix that error and add the ; instead of . and it creates 12 new errors for me. The code is.


    "    public class Printer
    {

     // main method begins program execution
     public static void main(String args[] )
     {
          // create Scanner to obtain input from command window
          Scanner input = new Scanner( System.in );

          // display a welcome message to the Printer user
          System.out.println( "Welcome to Printer R Us" );

          // printer supplies

          supplies[] supplies = new supplies[10]; // an array of 10 supplies

          supplies printer = new supplies( 20, "Black ink", 60, 19.99);
          supplies printer = new supplies( 10, "Color ink", 75, 29.99);
          supplies printer = new supplies( 30, "Epson", 30, 40.00 );
          supplies printer = new supplies( 10, "Hewlitt packard", 15, 90.00 );
          supplies printer = new supplies( 40, "Polaroid", 45, 120.00 );

          // display the inventories one at a time
          Black ink.showInventory();
          Color ink;showInventory();
          Epson.showInventory();
          Hewlitt packard;showInventory();
          Polaroid.showInventory();

          // sort supplies by name
          for ( int i = 0; i < args.length; i++ )
          System.out.println( args[i] + ", " );

          double array[] = { 78.75, 142.50, 157.50, 165.00, 93.75 };
          double total = 0;

          // add each element's value to total
          for ( int counter = 0; counter < array.length; counter++)
               total += array[ counter ];
          System.out.printf( "\nTotal inventory value is: $%.2f\n", total );

          System.out.println( "\nThank you for using Printer R Us!\n" );

     } // end method main

    } // end class Printer

    // Printer Supplies
    class supplies
    {
     public int suppliesNumber;
     public String suppliesName = new String();
     public int suppliesUnits;
     public double suppliesPrice;

     // set supplies number
     public void setSuppliesNumber( int number )
     {
          this.suppliesNumber = number;
     } // end method set supplies number

     // return supplies number
     public int getSuppliesNumber()
     {
          return suppliesNumber;
     } // end method get supplies number

     // set supplies name
     public void setSuppliesName( String name )
     {
          this.suppliesName = name;
     } // end method set supplies name

     // return supplies name
     public String getSuppliesName()
     {
          return suppliesName;
     } // end method get supplies name

     // set supplies in stock
     public void setSuppliesUnits( int units )
     {
          this.suppliesUnits = units;
     } // end method set supplies units

     // return supplies units
     public int getSuppliesUnits()
     {
          return suppliesUnits;
     } // end method get supplies units

     // set supplies price
     public void setSuppliesPrice( double price )
     {
          this.suppliesPrice = price;
     } // end method set supplies price

     // return supplies price
     public double getSuppliesPrice()
     {
          return suppliesPrice;
     } // end method get supplies price

     // calculate supplies inventory value
     public double getValue()
     {
          return suppliesUnits * suppliesPrice;
     } // end method supplies inventory value

    // four-argument constructor
     supplies( int number, String name, int units, double price )
     {
          suppliesNumber = number;
          suppliesName = name;
          suppliesUnits = units;
          suppliesPrice = price;
     } // end four-argument constructor

    // display inventory
     public void showInventory()
     {
          System.out.println(); // outputs blank line

          System.out.println( "Product Number:  "+suppliesNumber );
          System.out.println( "Product Name:  "+suppliesName );
          System.out.println( "Units in Stock:  "+suppliesUnits );
          System.out.printf( "Unit Price:  $%.2f", suppliesPrice );

          manufacturer supplies = new manufacturer
               ( 20, "Black ink", 60, 19.99, "HP" );

          System.out.println( "\nManufacturer:  "+supplies.getManufacturer() );

          // value() method and display the value
          System.out.printf( "\nInventory value of "+suppliesName+ " is = $%.2f\n",
               getValue() );

    } // end display inventory

    } // end class supplies

    class manufacturer extends supplies
    {
     // holds the supplies manufacturer
     private String suppliesManufacturer;

     // five-argument constructor
     manufacturer( int number, String name, int units,
          double price, String manufacturer )
     {
          super( number, name, units, price );
          suppliesManufacturer = manufacturer;
     } // end five-argument constructor

     // set supplies manufacturer
     public void setManufacturer( String manufacturer )
     {
          this.suppliesManufacturer = manufacturer;
     } // end method set supplies manufacturer

     // return supplies manufacturer
     public String getManufacturer()
     {
         return suppliesManufacturer;
     } // end method get supplies manufacturer

     // add 5% restocking fee
     public double getValue()
     {
          return super.getValue() * 1.05;
     } // end method return supplies manufacturer

     // calculate restocking fee
     public double getRestockingFee()
     {
          return super.getValue() * .05;
     } //end method calculate restocking fee

     //return String representation of suppliesManufacturer
     public String toString()
     {
          String formatString = "Manufacturer:  %s";
          formatString += "Restocking Fee:  $%.2f";
          formatString = String.format( formatString, suppliesManufacturer,
               super.getValue() * 0.05 );
          return( formatString + super.toString() );
     } // end toString()

     // display inventory
     public void showInventory()
     {
          super.showInventory();
          System.out.println( toString() );

          // Display value plus restocking fee
          System.out.printf( "\nInventory value of "+suppliesName+ " is = $%.2f\n",
               getRestockingFee() );

     } // end method display inventory

    } // end class manufacturer    `
1 Java programming error that when fixed creates 12 new errors
===

Ok I have an error that says:Desktop\Inventory Program\Printer.java:27: ';' expected
          Black ink.showInventory()...Everytime I fix that error and add the ; instead of . and it creates 12 new errors for me. The code is.


    "    public class Printer
    {

     // main method begins program execution
     public static void main(String args[] )
     {
          // create Scanner to obtain input from command window
          Scanner input = new Scanner( System.in );

          // display a welcome message to the Printer user
          System.out.println( "Welcome to Printer R Us" );

          // printer supplies

          supplies[] supplies = new supplies[10]; // an array of 10 supplies

          supplies printer = new supplies( 20, "Black ink", 60, 19.99);
          supplies printer = new supplies( 10, "Color ink", 75, 29.99);
          supplies printer = new supplies( 30, "Epson", 30, 40.00 );
          supplies printer = new supplies( 10, "Hewlitt packard", 15, 90.00 );
          supplies printer = new supplies( 40, "Polaroid", 45, 120.00 );

          // display the inventories one at a time
          Black ink.showInventory();
          Color ink;showInventory();
          Epson.showInventory();
          Hewlitt packard;showInventory();
          Polaroid.showInventory();

          // sort supplies by name
          for ( int i = 0; i < args.length; i++ )
          System.out.println( args[i] + ", " );

          double array[] = { 78.75, 142.50, 157.50, 165.00, 93.75 };
          double total = 0;

          // add each element's value to total
          for ( int counter = 0; counter < array.length; counter++)
               total += array[ counter ];
          System.out.printf( "\nTotal inventory value is: $%.2f\n", total );

          System.out.println( "\nThank you for using Printer R Us!\n" );

     } // end method main

    } // end class Printer

    // Printer Supplies
    class supplies
    {
     public int suppliesNumber;
     public String suppliesName = new String();
     public int suppliesUnits;
     public double suppliesPrice;

     // set supplies number
     public void setSuppliesNumber( int number )
     {
          this.suppliesNumber = number;
     } // end method set supplies number

     // return supplies number
     public int getSuppliesNumber()
     {
          return suppliesNumber;
     } // end method get supplies number

     // set supplies name
     public void setSuppliesName( String name )
     {
          this.suppliesName = name;
     } // end method set supplies name

     // return supplies name
     public String getSuppliesName()
     {
          return suppliesName;
     } // end method get supplies name

     // set supplies in stock
     public void setSuppliesUnits( int units )
     {
          this.suppliesUnits = units;
     } // end method set supplies units

     // return supplies units
     public int getSuppliesUnits()
     {
          return suppliesUnits;
     } // end method get supplies units

     // set supplies price
     public void setSuppliesPrice( double price )
     {
          this.suppliesPrice = price;
     } // end method set supplies price

     // return supplies price
     public double getSuppliesPrice()
     {
          return suppliesPrice;
     } // end method get supplies price

     // calculate supplies inventory value
     public double getValue()
     {
          return suppliesUnits * suppliesPrice;
     } // end method supplies inventory value

    // four-argument constructor
     supplies( int number, String name, int units, double price )
     {
          suppliesNumber = number;
          suppliesName = name;
          suppliesUnits = units;
          suppliesPrice = price;
     } // end four-argument constructor

    // display inventory
     public void showInventory()
     {
          System.out.println(); // outputs blank line

          System.out.println( "Product Number:  "+suppliesNumber );
          System.out.println( "Product Name:  "+suppliesName );
          System.out.println( "Units in Stock:  "+suppliesUnits );
          System.out.printf( "Unit Price:  $%.2f", suppliesPrice );

          manufacturer supplies = new manufacturer
               ( 20, "Black ink", 60, 19.99, "HP" );

          System.out.println( "\nManufacturer:  "+supplies.getManufacturer() );

          // value() method and display the value
          System.out.printf( "\nInventory value of "+suppliesName+ " is = $%.2f\n",
               getValue() );

    } // end display inventory

    } // end class supplies

    class manufacturer extends supplies
    {
     // holds the supplies manufacturer
     private String suppliesManufacturer;

     // five-argument constructor
     manufacturer( int number, String name, int units,
          double price, String manufacturer )
     {
          super( number, name, units, price );
          suppliesManufacturer = manufacturer;
     } // end five-argument constructor

     // set supplies manufacturer
     public void setManufacturer( String manufacturer )
     {
          this.suppliesManufacturer = manufacturer;
     } // end method set supplies manufacturer

     // return supplies manufacturer
     public String getManufacturer()
     {
         return suppliesManufacturer;
     } // end method get supplies manufacturer

     // add 5% restocking fee
     public double getValue()
     {
          return super.getValue() * 1.05;
     } // end method return supplies manufacturer

     // calculate restocking fee
     public double getRestockingFee()
     {
          return super.getValue() * .05;
     } //end method calculate restocking fee

     //return String representation of suppliesManufacturer
     public String toString()
     {
          String formatString = "Manufacturer:  %s";
          formatString += "Restocking Fee:  $%.2f";
          formatString = String.format( formatString, suppliesManufacturer,
               super.getValue() * 0.05 );
          return( formatString + super.toString() );
     } // end toString()

     // display inventory
     public void showInventory()
     {
          super.showInventory();
          System.out.println( toString() );

          // Display value plus restocking fee
          System.out.printf( "\nInventory value of "+suppliesName+ " is = $%.2f\n",
               getRestockingFee() );

     } // end method display inventory

    } // end class manufacturer    `