Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Interview-Questions how to delete a letter in a word?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


ASHUTOSH PRADHAN
how to delete a letter in a word?
1 Answer(s)      3 years and 9 months ago
Posted in : Java Interview Questions


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


Advertisement
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);
    }
}


Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com