Flashcards
CS 149 Ch. 1 Notes Formatting Code
Cards in this deck (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)
Information
- Description
- Computer Science Flashcards on CS 149 Ch. 1 Notes Formatting Code, created by Elijah Senegar on 30/01/2019.
- Created by
- Elijah Senegar
- Views
- 0
- Rating