i have the String word "Welcome To Gameloft" and String key "el". I want to cut the word el in word "Welcome To Gameloft" if the character in that word same with string key. So, the word be "Wcome To Gamoft". Can you help me, How can i do that?.
Originally Posted by i4ba1
no problem, here is an example that produce what you describe
String word = "Welcome To Gameloft";
String key = "el";
Lokk at the String API.
Specifically you'll want indexOf(String) and one or both of the substring() methods.