Autumn Discount
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
29 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
15 July 2019 14: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
8 May 2019 14: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...
Aditi Nawghare
Strings in Java
6 March 2023 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...
Alex Vypirailenko
Strings in Java
11 December 2020 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...
Vasyl Malik
Strings in Java
10 June 2021 8: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...
Vasyl Malik
Strings in Java
2 March 2023 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...
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...
Alex Vypirailenko
Strings in Java
15 August 2022 8:15
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...
John Selawsky
Strings in Java
9 December 2021 12:53
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...
Jesse Haniel
Strings in Java
6 March 2023 8:04
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...
Show more
1
2
3
This website uses cookies to provide you with personalized service. By using this website, you agree to our use of cookies. If you require more details, please read our
Terms and Policy
.
Accept and close
Please enable JavaScript to continue using this application.