Suppose I have a String like this.
String s = "I have this simple string java, I want to find keywords in this string";
Meantime I have a list of Keywords like this.
ArrayList<String> keywords = new ArrayList<>( Arrays.asList("string", "keywords"));
What I want to achieve is find out words in the s from keywords and generate a new string with highlighted keywords.like
String sNew = "I have this simple string java, I want to find keywords in this string";
This highlighting part is done through iText while generating a pdf.
Thanks.