Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
Strings
3.3K+ articles
Java Programs
2.0K+ articles
Java-Strings
239+ articles
strings
119+ articles
java-regular-expression
92+ articles
Java-Data Types
28+ articles
Java-String-Programs
145+ posts
Recent Articles
Popular Articles
Java Program to Check Whether the String Consists of Special Characters
Last Updated: 28 November 2024
In Java, special characters refer to symbols other than letters and digits, such as @, #, !, etc. To check whether the String consists of special characters, there are mul...
read more
Java
Technical Scripter
Java-Strings
Java Programs
Picked
Java-String-Programs
Java Program to Print all Unique Words of a String
Last Updated: 17 October 2022
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:Input : Welcome to Geeks for G...
read more
Java
Java Programs
Picked
Java-String-Programs
Java Program to Find All Palindromic Sub-Strings of a String
Last Updated: 03 August 2022
Given a string, the task is to count all palindrome substring in a given string.Input : abaOutput : 4Explanation : All palindrome substring are : "aba" , "a"...
read more
Java
Java Programs
Picked
Java-String-Programs
Java Program to Move All Uppercase Characters to the End
Last Updated: 31 March 2023
Given a string that contains uppercase letters as well as lower case letters. The task is to move all uppercase characters at the end of the String. The uppercase characte...
read more
Java
Java Programs
Picked
Java-String-Programs
Java Program to Find the Occurrence of Words in a String using HashMap
Last Updated: 19 December 2021
HashMapKey, Value provides the basic implementation of the Map interface of Java and import java.util.HashMap package or its superclass. HashMap stores the data in (Key, V...
read more
Java
Java Programs
Java-HashMap
Java-String-Programs
Java Program to Add Two Binary Strings
Last Updated: 19 May 2023
When two binary strings are added, then the sum returned is also a binary string.Example:Input : x = "10", y = "01"Output: "11"Input : x = "110", y = "011"Output: "1001"...
read more
Java
Java Programs
Java-String-Programs
Java Program to Convert String to String Array Using Regular Expression
Last Updated: 02 June 2022
Regular Expressions or Regex (in short) is an API for defining String patterns that can be used for searching, manipulating, and editing a string in Java. Email validation...
read more
Java
Java Programs
Picked
Java-String-Programs
Convert String to Byte Array in Java Using getBytes(Charset) Method
Last Updated: 22 November 2024
To convert a string to a byte array, we use the getBytes(Charset) method In Java that transforms the string into a sequence of bytes based on a specified character encodin...
read more
Java
Java-Strings
Java-Arrays
Java Programs
Picked
Java-String-Programs
Java Program to Extract a Single Quote Enclosed String From a Larger String using Regex
Last Updated: 31 January 2023
Problem Statement: Given a String extract the substring enclosed in single quotes (') using Java Regex.Java regex is an API for pattern matching with regular expression. '...
read more
Java
Technical Scripter
Java Programs
java-regular-expression
Java-String-Programs
Technical Scripter 2020
Java Program to Implement Wagner and Fisher Algorithm for Online String Matching
Last Updated: 19 January 2021
The Wagner-Fischer Algorithm is a dynamic programming algorithm that measures the Levenshtein distance or the edit distance between two strings of characters. Levenshtein ...
read more
Java
Java Programs
Picked
Java-String-Programs
Java Program to Convert String to Byte Array Using getBytes() Method
Last Updated: 19 January 2021
In Java, strings are objects that are backed internally by a char array. So to convert a string to a byte array, we need a getByte() method. It is the easiest way to conve...
read more
Java
Java Programs
Picked
Java-String-Programs
Java Program to Count Number of Vowels in a String
Last Updated: 02 November 2022
In java, the string is a sequence of characters and char is a single digit used to store variables. The char uses 2 bytes in java. In java, BufferedReader and InputStreamR...
read more
Java
Technical Scripter
Java Programs
Picked
Java-String-Programs
Technical Scripter 2020
Java Program to Convert OutputStream to String
Last Updated: 09 December 2021
OutputStream is an abstract class that is available in the java.io package. As it is an abstract class in order to use its functionality we can use its subclasses. Some su...
read more
Java
Technical Scripter
Java Programs
Picked
Java-String-Programs
Technical Scripter 2020
Java Program to Separate the Individual Characters from a String
Last Updated: 27 January 2021
The string is a sequence of characters including spaces. Objects of String are immutable in java, which means that once an object is created in a string, it's content cann...
read more
Java
Java Programs
Picked
Java-String-Programs
Java Program to Find the Lost Number
Last Updated: 04 January 2021
Bob is a small kid and just learned to count numbers. He sat in his house and started playing with his number of toys. He was having some n toy numbers on his left and the...
read more
Java
Competitive Programming
Java Programs
Java-String-Programs
DSA
1
2
3
4
...
10
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !