Promotion
CodeGym University
Learning
Course
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
116 members
Leaderboard
Popular
New
Old
Alex Vypirailenko
Strings in Java
17 July 2021 8:09
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...
Artem Divertitto
Strings in Java
20 January 2022 12:50
Java Regex - Matcher
A regular expression or regex is a sequence of characters that form a pattern. When you are searching for any data you can use this specialized pattern to find matching strings. It can be as simple as a single character or it can be a more...
Artem Divertitto
Strings in Java
11 January 2023 15:58
Java String equals()
Comparing objects for equivalence is one of the most important programming operations. However, for all its obviousness in the numeric world, it is not always clear how to compare other data types. Java Object class, a basic one, defines the equals() and compareTo() methods for comparison...
Oleksandr Miadelets
Strings in Java
3 August 2022 10:06
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
14 September 2020 11:04
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...
Jesse Haniel
Strings in Java
6 September 2022 7:15
Java Strings
In programming, strings are very commonly used. String in java is an object that represents a sequence of characters backed by a char array. String class is immutable in Java and implements Comparable, Serializable, and CharSequence...
Artem Divertitto
Strings in Java
10 March 2023 14:57
StringTokenizer in Java
StringTokenizer class in Java provides a tokenizer String method for splitting a string into tokens based on a specified delimiter...
Volodymyr Portianko
Strings in Java
15 October 2020 13:05
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...
Milan Vucic
Strings in Java
21 September 2022 8:06
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...
Alex Vypirailenko
Strings in Java
1 September 2023 11:12
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...
Vasyl Malik
Strings in Java
22 December 2021 7:50
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...
Milan Vucic
Strings in Java
30 November 2022 16:32
Java String compareTo() Method
The java string class compareTo() method returns the 0 value if both strings are lexicographically equal. If the compared string is greater lexicographically then the positive value is returned otherwise the negative value is returned. So the Java string compareTo() method is used to compare two strings...
Show more
1
2
3
Please enable JavaScript to continue using this application.