Flashcards
CS 149 Ch. 1 Notes Formatting Code
Flashcards do conjunto (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)
Informações
- Descrição
- Computer Science FlashCards sobre CS 149 Ch. 1 Notes Formatting Code, criado por Elijah Senegar em 30-01-2019.
- Criado por
- Elijah Senegar
- Visualizações
- 0
- Avaliação