Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
11 Cards in this Set
- Front
- Back
- 3rd side (hint)
Scanner |
import.java.util.Scanner |
How to use scanner |
|
Modulus |
Finds remainder after division with ints (whole number)"%" ints (whole number) ints (whole number)"%" "%" |
Math |
|
Main method |
public static void main (String args [ ] ) |
Beginning of class |
|
Increment Operator |
Adds/Subtracts 1 to number variable |
++ or -- |
|
Increment Operator (Before variable) |
Changes then prints |
++number or --number |
|
Increment Operator (After Variable) |
Prints then changes for the next print |
number++ or number-- |
|
Assignment Operator Shortcut |
+= or -= etc |
|
|
Declare new scanner for input |
Scanner name = new Scanner (system.in): |
|
|
How to call a class within a class |
1. Create class object 2. Call object aka class and which method
[class name] [class name]Object = new [class name] ( ) ; [class name]Object.[method name] ( ) ; |
|
|
Instance variable |
Variable outside of methods but inside a class |
|
|
Do while loops vs while loops |
Do: runs condition at least once then checks while loop condition While: only runs with condition |
|