Lecture Code
  • Lecture 1 - Hello (demo)
  • Lecture 2 - Variable declaration and initialization (demo)
  • Lecture 3 - Arithmetic (demo)
  • Lecture 4 - Scanning integers, increment and decrement operators (demo)
  • Lecture 5 - Scanning characters, operation precedence, modulus operator, conditionals (demo)
  • Lecture 6 - Boolean expressions, conditional expressions (demo)
  • Lecture 7 - Logical operators and compound Boolean expressions (demo)
  • Lecture 8 - While loops, break and continue keywords (demo)
  • Lecture 9 - ?: operator, for loops (demo)
  • Lecture 10 - Reading data from the keyboard using while loops (demo)
  • Lecture 11 - For loops, switch statements, and ?: operator (demo)
  • Lecture 12 - Computing max, mean, and oddness of numbers read from the keyboard (demo)

  • Lecture 13 - Arrays (demo)
  • Lecture 14 - ?: operator, arrays, for-each loops, for-loops (demo)
  • Lecture 15 - Arrays, printf, 2D arrays (demo)
  • Lecture 16 - Recitation 6 Practice Problems (demo)
  • Lecture 16 - Arrays, 2D arrays (demo)
  • Lecture 17 - Methods (demo)
  • Lecture 18 - Args and more methods (demo)
  • Lecture 19 - 2D arrays (demo)
  • Lecture 20 - Arrays, matrices, and methods (demo)
  • Lecture 21 - More methods and matrices (demo)
  • Lecture 22 - Recitation Quiz 7 Review (quiz, solutions)
  • Lecture 23 - Methods and arrays (demo)

  • Lecture 24 - User defined classes that model entities (Box.java, Test.java)
  • Lecture 25 - File I/O with Scanner and PrintWriter (demo)
  • Lecture 26 - Exam 2 Review (solutions)
  • Lecture 27 - Static fields and static array methods: add, exists, count (demo)
  • Lecture 28 - Static fields and static array methods: sort with Insertion Sort Algorithm (demo)
  • Lecture 29 - A reusable integer array data structure and a utility library (IntegerArray.java,Utility.java,Test.java)
  • Lecture 30 - Utility class: copy and print 1D and 2D arrays (Utility2.java, L30.java)
  • Lecture 31 - Utility class: methods that have 1D and 2D arrays parameters (Utility.java, L31.java)
  • Lecture 32 - Utility class: methods that have 1D and 2D arrays parameters (Utility.java)
  • Lecture 33 - Practice writing methods (demo)
  • Lecture 34 - Practice writing methods (demo)
Exams
  • Exam 1 key
  • Exam 2 version 1 (key)
  • Exam 2 version 2 (key)
  • Exam 3 version 1 (Utility.java, Driver.java)
  • Exam 3 version 2 (Utility.java, Driver.java)
  • Resources