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
Java-Functions
4.2K+ articles
Strings
3.3K+ articles
Java Programs
2.0K+ articles
Java-lang package
417+ articles
Java-String-Programs
148+ articles
java-StringBuffer
37+ articles
Java-Strings
2.3K+ posts
Recent Articles
Popular Articles
How to Calculate the Levenshtein Distance Between Two Strings in Java Using Recursion?
Last Updated: 23 February 2024
In Java, the Levenshtein Distance Algorithm is a pre-defined method used to measure the similarity between two strings and it can be used to calculate the minimum number o...
read more
Java
Java Programs
Picked
Java-Strings
Java Examples
Java Program to Search a Particular Word in a String Using Regex
Last Updated: 16 February 2024
In Java string manipulation, searching for specific words is a fundamental task. Regular expressions (regex) offer a powerful and flexible approach to achieve this search....
read more
Java
Java Programs
Picked
Java-Strings
java-regular-expression
Java Examples
How to Convert a Comma-Separated String into an ArrayList in Java?
Last Updated: 16 November 2024
In Java, to convert a comma-separated string into ArrayList, we can use the split() method to break the string into an array based on the comma delimiter. Another method w...
read more
Java
Java Programs
Picked
Java-Strings
Java-ArrayList
How to Convert a String to a Character in Java?
Last Updated: 20 November 2024
String and char are fundamental and most commonly used datatypes in Java. A String is not a primitive data type like char. To convert a String to char in Java, we have to ...
read more
Java
Java Programs
Picked
Java-Strings
Java Examples
Java String equals() Method
Last Updated: 23 December 2024
String equals() method in Java compares the content of two strings. It compares the value's character by character, irrespective of whether two strings are stored in the s...
read more
Java
Java Programs
Picked
Java-Strings
How to Convert a String Class to an Integer Class in Java?
Last Updated: 29 February 2024
String in Java is used to store the sequence of characters in Java. A string can contain a character, a word, a sentence, or a paragraph. Integer is a Wrapper class that i...
read more
Java
Java Programs
Picked
Java-Strings
Java-Integer
Java Examples
Java String Exercise
Last Updated: 25 April 2024
String in Java are the objects which can store characters of values in Java, it act the same as an array of characters in Java. Java String is one of the most important to...
read more
Misc
Java
Java Programs
Java-Strings
Java-String-Programs
Difference Between charAt() and substring() Method in Java
Last Updated: 27 February 2024
In Java, the charAt() method of the String class is used to extract the character from a string. It returns the character at the specified index in the String. The substri...
read more
Java
Picked
Java-Strings
Java-Functions
How to Split a String in Java with Delimiter?
Last Updated: 19 November 2024
In Java, the split() method of the String class is used to split a string into an array of substrings based on a specified delimiter. The best example of this is CSV (Comm...
read more
Java
Java Programs
Picked
Java-Strings
Java-StringTokenizer
Java Examples
How to Split a String into Equal Length Substrings in Java?
Last Updated: 29 November 2024
In Java, splitting a string into smaller substrings of equal length is useful for processing large strings in manageable pieces. We can do this with the substring method o...
read more
Java
Java Programs
Picked
Java-Strings
Java-String-Programs
How to Find the Longest Common Prefix of Two Strings in Java?
Last Updated: 25 April 2024
In this article, we will find the longest common prefix of two Strings in Java.Examples:Input: String 1= geeksforgeeks, String 2 = geezerOutput:“gee”Input: String 1= flowe...
read more
Java
Java Programs
Picked
Java-Strings
Java Examples
How to Read an HTTP Response Body as a String in Java?
Last Updated: 26 April 2024
When working with the HTTP requests in Java it's common to need to read the response body returned by the server. In many cases, you may want to read the response body as ...
read more
Java
Java-Strings
Java-String-Programs
Java Examples
How to Check if a String Starts with a Specific Prefix in Java?
Last Updated: 27 August 2024
In Java, to determine if a string starts with a specific prefix, we use the startsWith() method from the String class. This method is useful in various scenarios, includin...
read more
Java
Picked
Java-Strings
Java Examples
Extract Maximum Numeric Value From A Given Alphanumeric String in Java
Last Updated: 20 August 2024
In this article, we will learn to extract the maximum numeric value from a given alphanumeric string using Java. We will use regular expressions to identify and isolate nu...
read more
Java
Picked
Java-Strings
Java - Split String by Dot (.)
Last Updated: 09 December 2024
In Java, we can split a string into substrings based on dots using different methods. This article covers 3 approaches to split a string by dot, which are split(), StringB...
read more
Java
Java-Strings
1
2
3
4
...
156
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 !