I requested from me a program to implement a registration system of university
If I run a program I will add some students with specific name to the university (added in linked list)
my question is how to make this program save this students after close the program .
I meant after clos the program and run it again , I want the students who added in linked list become stil in it.
save data after close the program
Started by eman ahmed, Sep 29 2010 09:51 AM
2 replies to this topic
#1
Posted 29 September 2010 - 09:51 AM
|
|
|
#2
Posted 29 September 2010 - 10:26 AM
You have to save them into a file. write them to the hard disk. After reopening you must read them from the file and place back to your linkedlist.
Have you tried reading some book about Java? You are asking lots of trivial questions.
Have you tried reading some book about Java? You are asking lots of trivial questions.
#3
Posted 29 September 2010 - 04:15 PM
Runtime.getRuntime().addShutdownHook(new Thread() {
public void run() {
// Logic to save list here.
}
});
Not a guarantee that it'll save. Read documentation for more info.


Sign In
Create Account


Back to top









