Edit and remove from file in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Edit and remove from file in java

Hi everyone... How can i remove a person with his things(like frist name and last name and id card...) by entering his id card from file..... I really need this so if u can tell me... I will be so grateful 😃😃

4th Jan 2020, 3:25 PM
AM-78
1 Answer
0
1) Store all objects in an ArrayList. 2) Use the object of an Iterator interface to traverse the ArrayList where you specify your condition to remove a specific matching record. Kindly read about the Iterator interface if you have not used it before. https://www.sololearn.com/learn/Java/2184/
4th Jan 2020, 5:42 PM
Avinesh
Avinesh - avatar