Novice Java Tutorial with Apache NetBeans 11.0: 4 Escape Characters

Опубликовано: 26 Июнь 2026
на канале: Bruce Lamb
57
0

Discuss special characters and demonstrate a few of them
new line: \n
tab: \t
single backslash: \\
To copy and paste code visit: www.carbon12.life/Tutorials/Novice_Java/4_Escape_Characters.php

With a google search, docs.oracle page is used to identify the escape sequences to represent some special characters. (0:36)

Reminder and emphasize that docs.oracle page is extremely important for your coding career.(0:50)

Execute a previous example and briefly review it to build up to the topic of this video. (1:07)

Alter the program by changing the first program statement from println to print. (1:11)

Explain what the escape characters are and utilize the "new line" \n characer as an example. (1:14)

Alter the program so that both program statements print the same exact result. (2:10)

NOTE: I warn that the \\ "single backslach" \ will be covered in a different video BUT is covered in this video at 3:36. (2:30)

Alter the example by replacing \n with \t in the example code. (2:56)

Execute the example that uses the tab \t character. (3:39)