• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help with starting out this project.  RSS feed

 
stan zhu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey everyone,

It's not really a code problem its a matter of how to start it out. So i have 4 .dat files in plaintext format players.dat, gamertag.dat, games.dat, scores.dat and i have to create 4 classes to read each of the 4 dat files. It says the relationship between these classes are a player can have zero or more gamertag, a gamertag can play zero or more games, and a game can be played zero or more times. What exactly does that mean?
 
Carey Brown
Saloon Keeper
Posts: 3315
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Has zero or more" implies that the class has a "collection" of some other class. There are many types of collections, a commonly used collection is an ArrayList but there are others. The particular type of collection that you choose depends on the data, how you intend on adding new items, and how you intend on retrieving those items.
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
stan zhu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! got it now.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!