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
John Selawsky
Strings in Java
August 16, 2021 at 11:57 AM
Reverse a String in Java
What is a Reverse String? “Start reading a String beginning from its last character all the way up to the first character. Bingo! that was your reversed string." Here’s a demonstration of how it will look like...
Oleksandr Miadelets
Strings in Java
August 11, 2021 at 9:26 AM
String toLowerCase() Method in Java
What is the toLowerCase() Method? Java facilitates with a built-in method to convert the String contents to lower case using the toLowerCase() method...
Milan Vucic
Strings in Java
December 25, 2024 at 4:32 PM
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...
Artem Divertitto
Strings in Java
July 20, 2021 at 1:37 PM
How to get a new line character in Java?
What are the newline characters in Java? The reserved characters “\n” or “\r\n” in Java are called the newline characters. In Java, there are allocated keywords for performing specific functions. For example, using the keyword “int” will make the datatype of a variable an integer. Likewise, using “\n”...
Artem Divertitto
Strings in Java
November 2, 2021 at 10:44 AM
Java Capitalize First Letter of a String
How to capitalize strings in Java? Java provides a method called toUpperCase() that takes a String as a parameter. It returns a String in an “ALL CAPS” format of the String contents...
Milan Vucic
Strings in Java
March 31, 2025 at 8:52 AM
String Concatenation in Java
Java String concatenation is an operation to join two or more strings and return a new one. Also, the concatenation operation can be used to cast types to strings. You can concatenate strings in Java in two different ways...
Milan Vucic
Strings in Java
November 27, 2023 at 10:46 AM
Array to String in Java
In the world of Java programming, there's a common challenge that often puzzles beginners and seasoned coders alike: converting an array to a string. In this article, we'll explore various ways to turn that bunch of elements in an array into a neat, readable string.
1
2
3
Please enable JavaScript to continue using this application.