how to delete a letter in a word?

Ads
 

how to delete a letter in a word?

how to delete a letter in a word? for example if i enter= roseindia, i want to delete 's', then output= roeindia.

View Answers

March 12, 2011 at 11:20 AM

class RemoveLetterFromString{
    public static void main(String[] args){
        String str="roseindia";
        String newstring=str.replace("s","");
        System.out.println(newstring);
    }
}

Ads









Related Tutorials/Questions & Answers:
how to delete a letter in a word?
How to delete line starting with a letter in java Regex?
Advertisements
display all words containing the letter which i gave as input...
how to delete a row in sql without using delete command.
How to delete file in Java code?
How to delete data from MySQL?
How to delete objects using Hibernate?
how to count words in string using java
How to delete files in Java?
how to delete a jar from mobile
how to delete a jar from mobile
how to delete a jar from mobile
how to delete a jar from mobile
how to delete a jar from mobile
how to delete a jar from mobile
how to delete a jar from mobile
how to delete a jar from mobile
how to delete a jar from mobile
how to delete a jar from mobile
how to delete a jar from mobile
How to delete .xlsx file in java?
How to delete file in java ?
how to delete the access database value in jsp
how to delete the access database value in jsp
How to delete all Docker local Docker images
how to delete a jar from mobile in j2me application
how to delete a jar from mobile in j2me application
how to delete a jar from mobile in j2me application
how to delete a jar from mobile in j2me application
how to delete a jar from mobile in j2me application
how to delete a jar from mobile in j2me application

Ads