Lightning review of Java

  1. The big three of Object Oriented Programming
  2. Some facts
  3. Class definitions
  4. Inheritance
  5. Creating objects (instances)
  6. Exceptions -- another debugging tool (or bug prevention device).
        int getInt(JTextField aTF) {
            try {
                int n = Integer.parseInt(aTF.getText());
                return n;
            } catch (NumberFormatException e) {
                return INPUT_ERROR;
            }
        }
  7. Arrays in Java