Java String equals() The Java String class equals() method compares the two given strings based on the content of the string. If…
method
-
-
Java String substring() The Java String class substring() method returns a part of the string. We pass beginIndex and endIndex number position…
-
Java String equalsIgnoreCase() The Java String class equalsIgnoreCase() method compares the two given strings on the basis of the content of the…
-
Java String trim() The Java String class trim() method eliminates leading and trailing spaces. The Unicode value of space character is ‘u0020’.…
-
Java String join() The Java String class join() method returns a string joined with a given delimiter. In the String join() method,…
-
Java String replace() The Java String class replace() method returns a string replacing all the old char or CharSequence to new char…
-
Java String replaceAll() The Java String class replaceAll() method returns a string replacing all the sequence of characters matching regex and replacement…
-
Java URL The Java URL class represents an URL. URL is an acronym for Uniform Resource Locator. It points to a resource…
-
Java String getChars() The Java String class getChars() method copies the content of this string into a specified char array. There are…
-
How many Ways to Create an Object in Java There are five different ways to create an object in Java: Java new…