CS 1 Java Review Outline:

Updated: Mar 13, 2017
by: Nicholas Duchon.
  1. Oracle documentation

    1. Java 8 API
    2. Java Tutorials
    3. Home: Java 8 docs
    4. Java Docs Block Diagram
    5. Java 8 Language Spec
    6. JavaFX API
    7. API + source
    8. JavaFX 2.2 API
  2. public class <className>

    1. main
    2. instance variables
    3. class (static) variables
    4. instance methods
    5. class (static) methods
  3. Variables:

    1. type
      1. primitive data type (int, double, char, boolean, etc.)
      2. class (String, Random, Scanner, File, etc.)
    2. class (static)
    3. instance
    4. method parameter
    5. method local
    6. block local
    7. declaring a variable, and its type
    8. initializing the variable
  4. Methods

    1. class (static)
    2. instance
    3. parameter lists
    4. return type (may be void)
    5. abstract
    6. Special ones:
      1. constructor
      2. toString
      3. main
  5. Structures in methods:

    1. sequential
    2. branching
      1. if/else
      2. switch
    3. looping
      1. while
      2. do/while
      3. for
      4. break, continue
      5. loop labels to specify which loop break and continue apply to
    4. try/catch/finally blocks
  6. Arrays

    1. linear indexed data structure
    2. all elements of same type
    3. fixed size
    4. variable references an array data structure
    5. declaring an array
    6. initializing the elements
      1. new
      2. initializer
      3. element by element
        1. using a function
        2. reading from console
        3. reading from a data file
    7. referencing elements
    8. common operations
      1. zero the elements
      2. read element values from input
      3. random values
      4. displaying or printing
      5. summing the elements
      6. finding the minimum or maximum
      7. shuffling
      8. shifting
      9. swapping
      10. for-each (advanced for loops) with arrays
      11. as method parameters and return values
      12. searching and sorting
        1. linear search of unsorted array
        2. binary search of sorted array
        3. selection sort
        4. insertion sort
        5. bubble sort
  7. Some classes from the Java API

    1. String
      1. lots of cool methods
    2. Math
    3. Random
      1. nextInt (N)
      2. nextDouble in [0, 1) range
    4. Scanner
      1. next, nextInt, nextDouble
      2. hasNext, hasNextInt, hasNextDouble
    5. File
      1. Scanner for input
      2. PrintStream for output
    6. Exceptions
      1. java.lang.NullPointerException
      2. java.io.FileNotFoundException
      3. java.lang.ArithmeticException
      4. java.lang.ArrayIndexOutOfBoundsException
      5. checked vs unchecked exceptions
    7. System.out
      1. print
      2. println
      3. printf
    8. System.in
      1. with Scanner