java string

String Capitalize Java

Java comes with toUpperCase() and toLowerCase() methods that converts all the characters of the string into uppercase or lowercase. String Capitalize example keeps all String characters in capital letters. Following are the method signatures. String toLowerCase(): Converts all the characters of the string into lowercase. Returns a string with all lowercase letters. Remember, the original …

String Capitalize Java Read More »

One stop destination for all String and StringBuffer

Your one stop destintation for String and StringBuffer operations. 1. String Nature: String are immutable., 2. String Operations: finding matching characters, substring, concatenation & date types conversion to string, uppercase lowercase replacing, Region Matches – Interning – Splitting. 3. StringBuffer Operations: Length and Capacity, Searching Appending and Inserting, Deleting Replacing and Palindrome, Petty Methods and …

One stop destination for all String and StringBuffer Read More »

regionMatches() and intern() String Java

The String class is rich with abundant methods used in coding. One of the methods is overloaded regionMatches() used to find the existence of a few characters of one string in another. Supported methods from String class. boolean regionMatches(int positionFirstString, String secondString, int positionSecondString, int num): Returns a boolean value of true if the region …

regionMatches() and intern() String Java Read More »