Link to home
Start Free TrialLog in
Avatar of jaipur07
jaipur07

asked on

comparing strings stored in data structures?

Hi All

Exploring some best practices. I have 2 Text files having 200 lines of text.
I want to compare all lines of both files and extract the extra lines from both of the files.

any idea of best practices?
Avatar of valipotor
valipotor

Hi
Since the files are so small, you can load them in memory, and then compare them.
It's best to use twa array lists, each line should be stored as a String element in the array list.
ASKER CERTIFIED SOLUTION
Avatar of valipotor
valipotor

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial