+ 2
Instead of using a 2D array, you should use something more like a dictionary which uses key value pairs to store a variety of information. Info = {Name: "Short sword", Price: 100};
3rd Mar 2019, 12:30 AM
Adam Schmitt
Adam Schmitt - avatar
+ 2
You can test your data to tell which class it is (using instanceof.) Then, type cast it. https://www.webucator.com/how-to/how-check-object-type-java.cfm
3rd Mar 2019, 12:43 AM
John Wells
John Wells - avatar