I converted a game that I wrote in Python to
java (since Im currently learning it in my college class) and I cant figure out how to compare a
string to a string in an array without doing a lot of coding. All I basically want is if the player finds a weapon it gets added to their weapon array, then when you call the inventory function it will list the players weapons.
Heres the simpliest excerpt I could make
the first line of ListWeapons() throws a NullPointerException