help - cannot find symbol error

Can someone help me? I am getting "cannot find symbol" error in my code and cannot figure out why. Here is my code:

public class toyInventory

{

private String[] toyInventory = {"ball", "bat", "bear", "car", "doll", "game", "glove", "playstation", "train"};

private int[] nineArray = {0,0,0,0,0,0,0,0};

int invItems = 0;

public void countToy()

{

String orderInput[] = {"bear", "train", "car", "ball", "doll", "ball", "train", "doll", "game", "train", "bear", "doll", "train", "car", "ball", "bat", "glove", "bat", "b", "doll", "bear", "ball", "doll", "bat", "car", "glove", "train", "doll", "bear"};

int noMatch;

for(int a = 0; a < orderInput.length; a++)

{

noMatch = 0;

for(int b = 0; b < toyInventory.length; b++)

{

if(orderInput[a] == toyInventory)

{

noMatch = 1;

break;

}

}

if(noMatch == 0)

invItems = 1;

}

}

public void printItems()

{

for(int c = 0; c < toyInventory.length; c++)

{

if (countToy[c] > 4)<-- cannot find symbol error here

System.out.print("*");

System.out.print(toyInventory[c] + "\t" + countToy[c] + "\n"); <-cannot find symbol error here also

}

System.out.print("The number of invalid items in the order is" + invItems);

}

public static void main( String[] args)

{

toyInventory collection = new toyInventory ();

collection.countToy();

collection.printItems();

}

}

[1574 byte] By [colleen_na] at [2007-10-3 5:05:57]
# 1

public void countToy()

{

String orderInput[] = {"bear", "train", "car", "ball", "doll", "ball", "train", "doll", "game", "train", "bear", "doll", "train", "car", "ball", "bat", "glove", "bat", "b", "doll", "bear", "ball", "doll", "bat", "car", "glove", "train", "doll", "bear"};

In the above code you have declared countToy() as method and while in the below lines you are calling countToy[] as an array. So please check that...

if (countToy[c] > 4)<-- cannot find symbol error here

System.out.print("*");

System.out.print(toyInventory[c] + "\t" + countToy[c] + "\n"); <-cannot find symbol error here also

}

ggopia at 2007-7-14 23:11:53 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...