0

Anybody knows how to implement this scenario in Java?

sentence A - This is a very simple sentence.

sentence B - This is actually a simple sentence that I just made.

Output - This is [actually] a simple sentence [that I just made.]

where the ones inside the brackets are the newly-added words.

Note: Im kinda new at this so I dont really know where to start :(

Community
  • 1
  • 1
Israel Sato
  • 199
  • 1
  • 2
  • 12

1 Answers1

1

This might be a good question to look at. You are esentially looking for String diffs How to perform string Diffs in Java?

Community
  • 1
  • 1
MikeB
  • 2,402
  • 1
  • 15
  • 24