Escape Sequence Review

Descrição

AP Computer Science FlashCards sobre Escape Sequence Review, criado por Shannon Anderson-Rush em 07-09-2020.
Shannon Anderson-Rush
FlashCards por Shannon Anderson-Rush, atualizado more than 1 year ago
Shannon Anderson-Rush
Criado por Shannon Anderson-Rush aproximadamente 4 anos atrás
737
0

Resumo de Recurso

Questão Responda
A character preceded by a backslash (\) is an escape sequence and has a special meaning to the compiler. Let's get started reviewing escape sequence
\t Inserts a tab in the text at this point. This one is great for creating columns in string literals.
\n Inserts a newline in the text at this point. This is useful when you want to start a new line in your string literal without creating a separate print statement
\' Inserts a single quote character in the text at this point. This is necessary to show possession in a string literal.
\" Inserts a double quote character in the text at this point. This is necessary when you want to quote something in a string literal.
\\ Inserts a backslash character in the text at this point.
System.out.println("What is an astronaut\'s favorite key on the keyboard?"); The spacebar

Semelhante

Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr