aspose file tools*
The moose likes Beginning Java and the fly likes deleting record Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "deleting record" Watch "deleting record" New topic
Author

deleting record

Abhradeep Banerjee
Ranch Hand

Joined: Dec 09, 2009
Posts: 71
have pasted part of my code for delete
im not sure how to delete a record from linklist

all i know that i have to do a LL.remove();
not sure what to put in the brackets
i also want to put a index number next to each record when it displays
and when the user enters that number the program deletes the record



Thanks
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38851
    
  23
Why are you using a LinkedList rather than an ArrayList which allows random access?
subhash kumar
Ranch Hand

Joined: Jul 14, 2010
Posts: 63


Subhash Kumar
Attitude is everything
Abhradeep Banerjee
Ranch Hand

Joined: Dec 09, 2009
Posts: 71
mine doesn't really work like that mine is in a text file
ill paste the whole code



thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deleting record