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)
_____________________________________________________________________________
Thanks in advance.