Promotion
CodeGym University
Java FullStack
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme
Group
Reviews
About us
Start
Start learning
Start learning now
Articles
Authors
All groups
All Articles List
CodeGym
/
Java Blog
/
Strings in Java
Strings in Java
243 members
Leaderboard
Popular
New
Old
Jesse Haniel
Strings in Java
February 20, 2025 at 8:04 AM
Java String charAt()
The Java string class charAt() method returns the character at the specified index of a string. This specified index is provided as a parameter and it ranges from 0 to n-1, where n represents the length of the string...
Milan Vucic
Strings in Java
December 29, 2024 at 9:06 AM
Java String join() Method
The java string join() method joins all the strings with a delimiter provided to this method. We don’t need to create any object for using this method because it is a static method of the Java String class...
Artem Divertitto
Strings in Java
March 10, 2023 at 2:57 PM
StringTokenizer in Java
StringTokenizer class in Java provides a tokenizer String method for splitting a string into tokens based on a specified delimiter...
Alex Vypirailenko
Strings in Java
December 21, 2024 at 12:12 PM
Printf() in Java
printf() method belongs to the Java standard library and plays an important role in formatting output. This article will provide beginners with a comprehensive understanding of the printf() method, its purpose, and how to use it effectively...
Oleksandr Miadelets
Strings in Java
February 6, 2025 at 11:06 AM
String equalsIgnoreCase() Method in Java
The equalsIgnoreCase() method in Java is used to compare two strings while ignoring the case differences (lower and upper). Like the equals method, it compares the contents of both strings. If the contents are...
John Selawsky
Strings in Java
December 23, 2024 at 12:53 PM
Java String replace() Method
What are the common replace() methods of String class in Java? The String class provides four different kinds of replace() methods in Java. Each of the methods addresses a specific use case. Their names are listed below...
Alex Vypirailenko
Strings in Java
July 17, 2021 at 8:09 AM
String length() Method
What is the length of a String? “The length of a String in Java is equal to the number of characters in it. Including the alphabets, digits, spaces, and other special characters.” For example, the length of the string...
Alex Vypirailenko
Strings in Java
August 15, 2023 at 8:15 AM
Java String split() method
Let's talk about Java's String.split method: what it does and why it is needed. It's not hard to guess that it splits a Java string, but how does this work in practice? Let's dive deep into the operation of the method and discuss some non-obvious details. At the same time, we'll learn how many...
Volodymyr Portianko
Strings in Java
October 15, 2020 at 1:05 PM
Append() Method in Java: StringBuilder and StringBuffer
append() is a Java method of StringBuilder and StringBuffer classes that appends some value to a current sequence. Even if you didn't know what the append () method is, you probably already used it implicitly. This happened when you concatenated...
John Selawsky
Strings in Java
January 1, 2025 at 12:04 PM
Java String contains() Method
This function is specially designed to check if a string ‘contains’ another string or not. If you’re new to this you might end up using it to find a ‘character’. But it won’t serve the purpose. In this article, we’ll address how java.lang.String.contains() is used, implemented...
Vasyl Malik
Strings in Java
February 4, 2022 at 8:16 AM
Java: Check if String is Null, Empty or Blank
In Java, it’s very easy to confuse a null, empty or a blank string for beginners. However, let’s go by the definition of each to draw a line of difference. What is a “null” String in Java?..
Vasyl Malik
Strings in Java
February 19, 2025 at 7:50 AM
Java String trim() method
Even if the two strings look the same to you, they may not. For example, they may have leading and trailing spaces. The computer “sees” it, but we don’t. Java has a...
Show more
1
2
3
Please enable JavaScript to continue using this application.