It was intended to be a variable for the array, initially line 37 used an i for the count variable, that's where I got the error. This code is the result of me trying to tweak it to get it to work. When I switched the count variable to a in line 37 I got an error in the array variable on line 40.
Can someone please help me understand why I'm getting an exception here?
_____________________________________________________________________________
run:
Welcome to inventory managment.
How many items?
3
Enter item name: Homo
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at inventory.Inventory.main(Inventory.java:39)
Java Result: 1
BUILD SUCCESSFUL (total time: 16 seconds)
_____________________________________________________________________________