I'm using BlueJ. This is the code that's giving me the error.
public void printBackwards() {
int count = 5;
for (count = 5; count < holiday.length; count--) // Error: int cannot be dereferenced
{
System.out.println(holiday[count]);
count++;
}
This is the global array I'm working with.
String [] holiday = new String [] {"St Paddy's Day", "Spring Break", "Christmas Break", "Easter", "Independence Day"};
Anyone know what is causing the error? Thank you very much.