What you are referring to is a csv
file which stand for comma separated value. There are many existing methods for reading and writing these files in just about any programming language, including Java. csv
is a very common structure for storing data that is in a table format, meaning there are rows and columns. Generally, each row represents a record, or object in your case, and is expected to have the same number of fields, or attributes in your case. The first line typically states the field names, but sometimes this provided separately.
xml
allows for hierarchical data. Maybe you don't know how many moves
each pokemon will have, some might have 1 and others could have as many as 5 for example. xml
might be a better choice in this case.
I recommend implementing both if you can to see which one works better as a learning experience. Also, this sounds like a great opportunity to learn about polymorphism. Check out this Java tutorial on it.