Basics

Description

AP Computer Science Flashcards on Basics, created by Ivanna P on 12/12/2023.
Ivanna P
Flashcards by Ivanna P, updated more than 1 year ago
Ivanna P
Created by Ivanna P over 1 year ago
1
0
1 2 3 4 5 (0)

Resource summary

Question Answer
The start of all Java programs A class
The symbol all Java programs start and end with { } braces
The symbol that goes at the end of most lines of code ; semi-colon
This action makes code easier to read indentation
System.out.print(x) prints x and remains on that line
System.out.println(x) prints x and moves on to the next line down
System.out.printf(s, x) print line for formatting [info under another topic]
System.[[[out]]].print("Hello World"); reference
System.out.[[[print]]]]("Hello World"); command / method
System.out.print[[["Hello World")]]]; string literal
Term for items that can be embedded inside the string parameter or print and provide extra ways to command, format, or control the output Escape Sequences
\n escape sequence: moves to front of the next line
\\ escape sequence: makes a single backslash
\" escape sequence: makes one double quote
\t escape sequence: tabs over 5 spaces
\b deletes previous character
\r moves to the front of the current line a.k.a - carriage return
\' nets one single quote
System.out.println( 7 + 8 + 9 ); 24
System.out.println( 7 + 8 + 9 );
Show full summary Hide full summary

0 comments

There are no comments, be the first and leave one below:

Similar

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