Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deleting record

 
Abhradeep Banerjee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 49733
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you using a LinkedList rather than an ArrayList which allows random access?
 
subhash kumar
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Abhradeep Banerjee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mine doesn't really work like that mine is in a text file
ill paste the whole code



thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic