Are there any libraries out there for Java that will accept two strings, and return a string with formatted output as per the *nix diff command?
e.g. feed in
Busybox has a diff implementation that is very lean, should not be hard to convert to java, but you would have to add the two-column functionality.