Skip to content

Tag Archives: Java-String-Programs

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. Methods: We can solve this problem using… Read More
Given a string “str” in Java, the task is to convert this string to float type. Methods: This can be done by two methods as… 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:… Read More
Given a string, the task is to convert the string to InputStream which is shown in the below illustrations. Illustration: Input : String : "Geeks… 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
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
Given a string, the task is to convert that string into an integer array. In order to simply let us first go through few illustrations… 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: Input :… 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
Java program to print all unique words present in the string. The task is to print all words occurring only once in the string. Illustration:… Read More