Got it ... I think.
I put the Compactdisk class back in, and just modified it for the new array ... at least that is what I think I did.
It looks good, it runs well ( a few bugs to work out, but I think I have it)
Tell me what you think Ezzaral, I might have to put your name as a reference in this somewhere if I ever get it working! :o)
Just look at the name variable right now, that is all I have implimented at this point. Here is the main class.
import java.util.Scanner; //uses class Scanner
public class Inventory
{// begin class Inventory
public static void main(String[] args)
{//begin method main
Compactdisk thisCompactdisk = new Compactdisk(); //call Compactdisk class
// create cd Array
Compactdisk[] cds = new Compactdisk[5];
cds[0] = new Compactdisk(); // adds to array
cds[0].getName();
int cdCount=0;
Scanner input = new Scanner(System.in); // create scanner
String nameInput = input.next();
// begin display method
System.out.print("Enter CD Name or STOP to Exit: ");
nameInput = input.next(); // read cd name
while (!nameInput.equalsIgnoreCase("STOP"))
{// begin main While
cds[cdCount] = new Compactdisk();
cds[cdCount].setName(nameInput);
System.out.print("Enter Price of this CD: "); // prompt for price
thisCompactdisk.setPrice(input.nextFloat()); // price input from user.
while (thisCompactdisk.getPrice()<= 0)
{// begin while
System.out.print("Price Must Be Greater Than Zero. Enter Price: ");
thisCompactdisk.setPrice(input.nextFloat()); // cd price loop from user.
} // End while
System.out.print("Enter CD Item Number: "); // prompt for cd item number
thisCompactdisk.setItemno(input.nextInt()); // cds item number …