Generate formatted diff output in Java

后端 未结 5 850
无人共我
无人共我 2020-12-09 09:53

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

<
5条回答
  •  悲&欢浪女
    2020-12-09 10:18

    http://c2.com/cgi/wiki?DiffAlgorithm I found this on Google and it gives some good background and links. If you care about the algorithm beyond just doing the project, a book on basic algorithm that covers Dynamic Programming or a book just on it. Algorithm knowledge is always good:)

提交回复
热议问题