Java String Search Using indexOf(), lastIndexOf() And contains() Methods
There are scenarios when you want to find characters or substrings within a String. For that purpose String class in Ja…
There are scenarios when you want to find characters or substrings within a String. For that purpose String class in Ja…
In this post we’ll see Java programs for char to String and String to char conversions. Converting char to String in …
String in Java is immutable which means once you create a String object the content of that string cannot be modified.…
In this post we’ll see a Java program to find duplicate characters in a String along with repetition count of the dupli…
StringBuffer class in Java is the companion class of Java String class . StringBuffer in Java is a mutable (modifiable…
This post is about writing a Java program to find that a given string or number is a palindrome or not . Remember a Str…
Writing a Java program to reverse a string using a recursive method or using iteration is one Java interview coding que…
We do know that String objects are immutable. It is also true that immutable objects are thread-safe so by transitive …
Write a Java program to count the number of words in a String is asked quite frequently in Java interviews . To test th…
In this post we'll see a Java program to convert a String to byte array and byte array to String in Java. Table of …
String class in Java is one of the most important and one of the most used class too. To make the usage of String cla…
In this post we’ll discuss Java String intern() method in detail. String interning process In Java String literals are …