![]() ![]() Unicode is a standard character encoding that includes the symbols of almost every written language in the world. Escape Unicode charactersAnother important topic that you need to know about in connection with escape characters is Unicode. Meet in her aspect and her eyes.Just what we wanted! The compiler recognized the escape sequence and output an excerpt of the poem on 4 lines. String byron = new String ("She walks in beauty, like the night, \nOf cloudless climes and starry skies\nAnd all that's best of dark and bright\nMeet in her aspect and her eyes.") Ĭonsole output: She walks in beauty, like the night, Thus, if the compiler encounters \n in the text, it understands that this is not just a symbol and a letter to display on the console, but rather a special command to "move to a new line!".įor example, this may be useful if we want to display part of a poem:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |