comparing arrays of strings ...

L

lbrtchx

Say you have two arrays of strings which you would like to pass to
some method for them to be compared line by line (as the Unix diff
utility does) and the output should be in some data structure that
lets you somehow intelligently manage the diff-erence
~
I guess there should be something like that out there in some java
library, but I couldn't find it
~
Any help?
~
Thanks
lbrtchx
 
S

Sigfried

(e-mail address removed) a écrit :
Say you have two arrays of strings which you would like to pass to
some method for them to be compared line by line (as the Unix diff
utility does) and the output should be in some data structure that
lets you somehow intelligently manage the diff-erence
~
I guess there should be something like that out there in some java
library, but I couldn't find it
~
Any help?

Googling for "java diff" gives:

http://www.incava.org/projects/java/java-diff/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top