The course assignment requires the development of a java score management system with the functions of query, modification, sorting, maximum value, and minimum value. To display in a form, the grade data is imported using an imported txt. Looking for general directions, do I need to use a database?
迷茫2017-06-12 09:24:53
You said you want to use txt to save, but you also need to use a database?
It is much easier to operate with a database.
Use txt which is io stream. You must format the data well
otherwise it will be very troublesome to read.
It is still recommended to use a database.
女神的闺蜜爱上我2017-06-12 09:24:53
If your data needs to be persisted, it is best to use a database. If your requirement is that the program is closed, the data should be initialized and the data types such as collections should be operated in memory during the running of the program
PHP中文网2017-06-12 09:24:53
There is no need for a database, because you already have the data source. The basic thing is probably like this
Read the file into the memory => If the operation (query, modification, sorting) is modified, the memory data needs to be updated =>Close the file