I realized the symbol thing was because I accidentally changed the inventory to char. But I still have the problem where item = 1 and 3 work fine, 2 outputs a huge number, and the rest just crash the computer. I tried setting all the values of int[] to 0 and that didn't work either. I'm on a different computer now ( the crash was unrelated to the code, it got a virus D: ) Any ideas?