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 :(