CodeGym /Courses /Module 1. Java Syntax /Additional lessons for Level

Additional lessons for Level

Module 1. Java Syntax
Level 11, Lesson 6
Available

In this level, we touched on several new topics: what literals are, what escaping is, and why escape sequences came into existence. And also we continued to get to know classes. This time around our agenda featured the String class, as well as the nuances of working with strings. Before moving on, make sure you've got a solid understanding of all this.

Escaping characters

You'll gradually learn how to escape characters, even if it seems at present that there are too many rules. It doesn't hurt to read something extra on the topic. For example, there's this helpful article. You can also add it to your bookmarks and periodically take a peek until you no longer need it!


A lecture snippet with a mentor as part of the Codegym University course. Sign up for the full course.


11
Task
New Java Syntax, level 11, lesson 6
Locked
There are various kinds of apples
There are various kinds of apples
11
Task
New Java Syntax, level 11, lesson 6
Locked
Every letter is lowercase
Every letter is lowercase
11
Task
New Java Syntax, level 11, lesson 6
Locked
Forgotten initialization
Forgotten initialization
11
Task
New Java Syntax, level 11, lesson 6
Locked
Instance field shadowing
Instance field shadowing
11
Task
New Java Syntax, level 11, lesson 6
Locked
Feel like a university dean
Feel like a university dean
11
Task
New Java Syntax, level 11, lesson 6
Locked
MacCoffee 3 in 1
MacCoffee 3 in 1
11
Task
New Java Syntax, level 11, lesson 6
Locked
Making a list of students
Making a list of students
11
Task
New Java Syntax, level 11, lesson 6
Locked
Student
Student
11
Task
New Java Syntax, level 11, lesson 6
Locked
An inherited phone
An inherited phone
11
Task
New Java Syntax, level 11, lesson 6
Locked
Digits as text
Digits as text
Comments (6)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Dom Level 21, England, United Kingdom
11 August 2025
public class Solution { public static void main(String[] args) { String[] test = {"SecI ", "retL", "namo", "retv", "tete ", "yurJ", "runa", "trev", "coda"}; for(int i=0;i<test.length;i++){ for(int j=3;j<test[i].length();j++){ System.out.print(test[i].charAt(j)); } } } }
Anonymous #11548397 Level 21, Germany, Germany
10 August 2024
bruh
Anonymous #11450946 Level 47, Nanjing, Hong Kong
5 February 2024
I'm afraid a character in a string could occupy 1 or 2 or 4 bytes rather than only 2or4. When a string is comprised of letters and numbers only, each char occupies 1 byte.
1 December 2024
UTF-16 data can have characters with 2 or 4 bytes.
Campbell, Jackson Level 12, Corona, USA
30 October 2023
5/10, light work no reaction
Campbell, Jackson Level 12, Corona, USA
30 October 2023
ඩ