Skip to content

Tag Archives: Java-Strings

appendCodePoint() method of StringBuffer class appends the string representation of the codePoint argument to this sequence for which we require pre-requisite knowledge of ASCII table… Read More
The Java.lang.StringBuffer.deleteCharAt() is a built-in Java method which removes the char at the specified position in this sequence. So that the sequence is reduced by… Read More
The Java.lang.StringBuffer.reverse() is an inbuilt method which is used to reverse the characters in the StringBuffer. The method causes this character sequence to be replaced… Read More
String toString() is the built-in method of java.lang which return itself a string. So here no actual conversion is performed. Since toString() method simply returns… Read More
Given a string as input, write a program to convert the characters of the given string into the hexadecimal equivalent of ASCII values. Examples :  Input… Read More
Given the Hexadecimal value string as input, the task is to convert the given hexadecimal value string into their corresponding ASCII format string. Examples:  Input:… Read More
Given a string, your task is to remove the whitespaces in the string using Java Regex (Regular Expressions). Examples Input : Hello Everyone . Output… Read More
The Java.lang.String.subSequence() is a built-in function in Java that returns a CharSequence. CharSequence that is a subsequence of this sequence. The subsequence starts with the… Read More
The trim() method in Java String is a built-in function that eliminates leading and trailing spaces. The Unicode value of space character is ‘\u0020’. The… Read More
Given an integer N which shows the size of the string and in the next line given a string which contains a string of character… Read More
Java String toLowerCase() method is used and operated over string where we want to convert all letters to lowercase in a string. There are two… Read More
The java string toUpperCase() method of String class has converted all characters of the string into an uppercase letter. There is two variant of toUpperCase()… Read More
The java string toCharArray() method converts the given string into a sequence of characters. The returned array length is equal to the length of the… Read More
Given two integer number n and d. The task is to find the number between 0 to n which contain the specific digit d. Examples: … Read More
The java.lang.string.join() method concatenates the given elements with the delimiter and returns the concatenated string.Note that if an element is null, then null is added.The… Read More

Start Your Coding Journey Now!