lets say Ive got string:
Java Android iOS
I need the output of it like this:
%java%
%android%
%ios%
or
%java%%android%%ios%
How can I do that?
Sorry, perhaps I didnt explain it okay.
String tok[]=input1.split(" ");
for(String t:tok){
System.out.println("%"+t.toLowerCase()+"%");
}
that could be good answer but I forgot to mention that I need this saved, not only printed so best result would be as in example 2, so just adding %..% around every word