Skip to content

Tag Archives: Java-String-Programs

If we have a char value like ‘G’ and we want to convert it into an equivalent String like “G” then we can do this… Read More
We will be discussing out how to add character to a string at particular position in a string in java. It can be interpreted as… Read More
Given an enum containing a group of constants, the task is to convert the enum to a String. Attention reader! Don’t stop learning now. Get… Read More
Given a string “str” in Java, the task is to convert this string to float type. Methods:Attention reader! Don’t stop learning now. Get hold of… Read More
Zhu-Takaoka String Matching Algorithm is a Variant of Boyer Moore Algorithm for Pattern Matching in a String. There is a slight change in the concept… Read More
String Interpolation is a process in which the placeholder characters are replaced with the variables (or strings in this case) which allow to dynamically or… Read More
Java is the most powerful programming language, by which we can perform many tasks and Java is an industry preferable language. So it is filled… Read More
Given a String, the task is to convert the string into an Array of Strings in Java. It is illustrated in the below illustration which… Read More
Given string str of length N, the task is to traverse the string and print all the characters of the given string using java. Illustration:Attention… Read More
Given a string, the task is to convert the string to InputStream which is shown in the below illustrations. Illustration:Attention reader! Don’t stop learning now.… Read More
Double quotes are mainly used to indicate a string. When we print any string, the double quotes are not printed but only the value inside… Read More
In this program, we will be discussing various methods for replacing multiple characters in String. This can be done using the methods listed below:  Using… Read More
Strings – Strings in Java are objects that are supported internally by a char array. Since arrays are immutable, and strings are also a type… Read More
Given string str of length N, the task is to traverse the string and print all the characters of the given string. Illustration:Attention reader! Don’t… Read More
Special characters are those characters that are neither a letter nor a number. Whitespace is also not considered a special character. Examples of special characters… Read More

Start Your Coding Journey Now!