Java – String lastIndexOf() Method

13 years ago

Description: This method has following variants: int lastIndexOf(int ch): Returns the index within this string of the last occurrence of…

Java – String intern() Method

13 years ago

Description: This method returns a canonical representation for the string object. It follows that for any two strings s and…

Java – String indexOf() Method

13 years ago

Description: This method has following different variants: public int indexOf(int ch): Returns the index within this string of the first…

Java – String hashCode() Method

13 years ago

Description: This method returns a hash code for this string. The hash code for a String object is computed as:…

Java – String getChars() Method

13 years ago

Description: This method copies characters from this string into the destination character array. Syntax: Here is the syntax of this…

Java – String getBytes() Method

13 years ago

Description: This method has following two forms: getBytes(String charsetName): Encodes this String into a sequence of bytes using the named…

Java – String equalsIgnoreCase() Method

13 years ago

Description: This method compares this String to another String, ignoring case considerations. Two strings are considered equal ignoring case if…

Java – String equals() Method

13 years ago

Description: This method compares this string to the specified object. The result is true if and only if the argument…

Java – String endsWith() Method

13 years ago

Description: This method tests if this string ends with the specified suffix. Syntax: Here is the syntax of this method:…

Java – String copyValueOf() Method

13 years ago

Description: This method has two different forms: public static String copyValueOf(char[] data): Returns a String that represents the character sequence…