dinesh Archive
Description: This method has two variants and tests if a string starts with the specified prefix beginning a specified index or by default at the beginning. Syntax: Here is the syntax of this method: public …
Description: This method has two variants and splits this string around matches of the given regular expression. Syntax: Here is the syntax of this method: public String split(String regex, int limit) or public String split(String …
Description: This method replaces the first substring of this string that matches the given regular expression with the given replacement. Syntax: Here is the syntax of this method: public String replaceFirst(String regex, String replacement) Parameters: …
Description: This method replaces each substring of this string that matches the given regular expression with the given replacement. Syntax: Here is the syntax of this method: public String replaceAll(String regex, String replacement) Parameters: Here …
Description: This method returns a new string resulting from replacing all occurrences of oldChar in this string with newChar. Syntax: Here is the syntax of this method: public String replace(char oldChar, char newChar) Parameters: Here …
Description: This method has two variants which can be used to test if two string regions are equal. Syntax: Here is the syntax of this method: public boolean regionMatches(int toffset, String other, int ooffset, int …
Description: This method tells whether or not this string matches the given regular expression. An invocation of this method of the form str.matches(regex) yields exactly the same result as the expression Pattern.matches(regex, str). Syntax: Here …