Skip to content

Tag Archives: Java-String-Programs

The string is a sequence of characters. In java, objects of String are immutable. Immutable means that once an object is created, it’s content can’t… Read More
The Bitap Algorithm is an approximate string matching algorithm. The algorithm tells whether a given text contains a substring which is “approximately equal” to a… Read More
ArrayList is a part of collection framework and is present in java.util package. It provides us with dynamic arrays in Java. In order to convert… Read More
A Palindrome String is a string whose reversed string is equal to the original string. In this Java Program, we are going to see the… Read More
Read and Write operations are basic functionalities that users perform in any application. Every programming language provides I/O streams to read and write data. The… Read More
Strings are defined as an array of characters. The difference between a character array and a string is the string is terminated with a special… Read More
In-built Object class is the parent class of all the classes i.e each class is internally a child class of the Object class. So we… Read More
ASCII is a code that converts the English alphabets to numerics as numeric can convert to the assembly language which our computer understands. For that,… Read More
Given a String, the task it to split the String into a number of substrings. A String in java can be of 0 or more… Read More
Figure a way out to print all the strings that match a given pattern from a file. To get closer to the goal, concepts of… Read More
Given an integer n and character ch, return a String using the character as thousands separator on the given number. Examples: Input: n=1234 , ch… Read More
The Stack is a linear data structure that follows the LIFO(Last In First Out) principle, i.e, the element inserted at the last is the element… Read More
The regionMatches() method of the String class has two variants that can be used to test if two string regions are matching or equal. There… Read More
Given string str of length N, the task is to remove uppercase, lowercase, special, numeric, and non-numeric characters from this string and print the string… Read More
Given string str of length N, the task is to check if the given string contains only special characters or not. If the string contains… Read More

Start Your Coding Journey Now!