Promotion
CodeGym University
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
185 members
Leaderboard
Popular
New
Old
Vasyl Malik
Strings in Java
27 July 2022 13:06
Java Escape Characters
Hi! In previous lessons, we've already gotten acquainted with text strings, which are represented by the String class in Java. As you probably remember, a string is a sequence of characters. These characters can be any letters, numerals, punctuation marks and so on ...
Jesse Haniel
Strings in Java
17 December 2024 15:38
How to convert int to String in Java
In this article we are going to discuss converting int (primitive type) and Object type (wrapper) Integer to String. There are many ways to do it in Java. Convert by adding an empty string. The easiest way to convert int to String is very simple. Just add to int or Integer an empty string "" and you’ll get your...
Volodymyr Portianko
Strings in Java
18 February 2025 15:32
Regular expressions in Java
Regular expressions is a topic that programmers, even experienced ones, often postpone for later. But sooner or later, most Java developers have to process textual information. Most often, this means searching and editing text. Without regular expressions, effective and compact text-processing code is simply...
John Selawsky
Strings in Java
14 July 2022 10:43
Substring in Java
This article is about substring () methods in Java language. Here you will find the explanation of how using these methods, find out how they work and get some beneficial examples. Substring in general is a contiguous sequence of characters inside the String. It could be a part of the String or the whole String as well...
Alex Vypirailenko
Strings in Java
11 December 2023 7:26
11 parse() methods in Java with Examples
Parsing in its most general sense is the extraction of the necessary information from some piece of data, most often textual data. What is parse in Java? There are many Java classes that have the parse() method. Usually the parse() method receives some string as...
Aditi Nawghare
Strings in Java
24 December 2024 9:50
Java String format()
The Java string format() method is used to format strings, integers, decimal values, and so on, by using different format specifiers. This method returns the formatted string using the given locale, specified formatter, and arguments. If no locale is provided then it uses the default locale for formatting the strings...
Vasyl Malik
Strings in Java
26 December 2024 15:53
Java String indexOf()
As a Java developer, you must have come across the need to find the position of a character or a substring within a string. Java provides a built-in method called...
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...
Pavlo Plynko
Strings in Java
12 November 2021 7:27
Java String lastIndexOf() Method
The lastIndexOf() method returns the position of the last occurrence of a specified character or a substring in a string. Imagine that you have some kind of long text, or rather a long line...
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...
Vasyl Malik
Strings in Java
20 February 2025 9:47
Java toUpperCase() Method
What is toUpperCase() Method? “The toUpperCase() method in Java returns the input content in ALL CAPS.” Java provides you with a simple, easy to use and quite helpful function to convert any text, characters or strings in ALL-CAPS. There are a lot of times...
Oleksandr Miadelets
Strings in Java
6 February 2025 11: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...
Show more
1
2
3
Please enable JavaScript to continue using this application.