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 ); |
There are no comments, be the first and leave one below:
Want to create your own Flashcards for free with GoConqr? Learn more.