*
The moose likes Beginning Java and the fly likes removing a record Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "removing a record" Watch "removing a record" New topic
Author

removing a record

Shashikant Anant
Greenhorn

Joined: Jul 23, 2003
Posts: 5
I am creating a class in which I am declaring variables, and adding methods like insert,delete and modify. I can do the insert and modify using constructors but I don't know how to delete the elemets which are defined in the same class without using arrays. These will be stored in data file. But I should delete it before saving it in the data file. Because the details will go to datafile only when user clicks on save and he can delete the data entered if he wants to delete it. Can anybody please help me to solve this problem?
Barry Andrews
Ranch Hand

Joined: Sep 05, 2000
Posts: 523

I am confused about your problem. If you can modify, why not delete? Same concept. Can you post the code you have and maybe it will be more clear to what you are trying to accomplish?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: removing a record