• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/11

Click to flip

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