Karteikarten
CS 149 Ch. 1 Notes Formatting Code
Karten in diesem Stapel (6)
- 1Public Class defines...?...Class (container for methods)
- 2Public static void main defines...?...main method (container for code)
- 3Code is made up of what?Statements; they're executed line by line and must end with ; (at least for Java)
- 4What are some rules for formatting code?After every curly brace, indent 4 spaces (for this class)
Don't make any line more than 80 characters per line - 5System.out.print (What is each word?)System is class;
out is output;
print (method) means "print this" - 6What are escape sequences?Ways to type things not normally allowed (ex \t is tab; NOT THE SAME as pressing tab button)
Informationen
- Beschreibung
- Computer Science Karteikarten am CS 149 Ch. 1 Notes Formatting Code, erstellt von Elijah Senegar am 30/01/2019.
- Erstellt von
- Elijah Senegar
- Aufrufe
- 0
- Bewertung