how to delete a letter in a word? for example if i enter= roseindia, i want to delete 's', then output= roeindia.
class RemoveLetterFromString{ public static void main(String[] args){ String str="roseindia"; String newstring=str.replace("s",""); System.out.println(newstring); } }
Ads