CodeGym /Courses /Java Syntax Zero /Additional lessons for Level

Additional lessons for Level

Java Syntax Zero
Level 10, Lesson 8
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.


10
Task
New Java Syntax, level 10, lesson 8
Locked
Why you might fail to have a great career
You don’t have to unplug your brain to prevent a meltdown due to an overabundance of new information. We just need to feed it something simple that’s still interesting. Let’s watch an inspiring speech by Larry Smith about why people fail to have great careers unless they follow their passion and see opportunities instead of obstacles.
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
ඩ