Skip to content

karunkarthickc/Remove-substring-from-String-in-Java-using-string-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Remove-substring-from-String-in-Java-using-string-functions

In this program i have traversed the substring and replaced the character in the string by replace method the char is not accepted in replace method so i have converted char into string and removed the substring char from a string. the replace method either takes a pair of char's or a pair of CharSequence's (of which String is a subclass, so it'll happily take a pair of String's). The replace method will replace all occurrences of a char or CharSequence. On the other hand, the first String arguments of replaceFirst and replaceAll are regular expressions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages