For my project I in phase 1 we cannot use a database and I am having trouble figuring out what to do. the textfiles are like
ProductID1 ProductName1 Price1 Quantity1
ProductID2 ProductName2 Price2 Quantity2
ProductID3 ProductName3 Price3 Quantity3
ProductID4 ProductName4 Price4 Quantity4
ProductID5 ProductName5 Price5 Quantity5
^with actual data though
I know how to read in the files using StringTokenizer, I just don't understand what datatype to place everything in because everything I've been working with so far that I've known java is 1D Arrays/Lists. When you have 4, 5, or 6 colums what to can I do when I don't have a DB to hold the information and I need to access it easily. I looked on google and it seemed like I should use a Map or HashMap but I still don't see any examples of how to use one when you have 4 columns of data for each row. If anyone can shield some light on what to do I'd be grateful.