Link Search Menu Expand Document (external link)

Review from COMP 142

These handouts relate to topics covered in COMP 142 that are foundational for COMP 241. These handouts are here for your benefit and may help you review and refresh your understanding of 142. If you feel you don’t understand any of these topics, please come talk to me at the beginning of the course.

General

Start-up: Accessing in-class code examples

Introduction to Java: Organization, Syntax, and Basics

: Java basics
while loop handout
for loop handout
Functions handout
Functions with arrays.

Simple Practice and Examples

Example Code (Introduction)
The Problem Code (Introduction)
Introduction to Java Programs
For Loop Code
functions practice
Starting code (functions with arrays)

String and ArrayList basics

SimpleCanvas and Color APIs
String handout,
ArrayList handout,

Object-Oriented Programming

OOP definitions
Class design handout

OOP Practice and Examples

Creating Classes I
Creating Classes III

Gotchas handout

Lecture 3 - SimpleCanvas & In-Class Work
Fraction Class Handout
String and ArrayList Practice problems

Recursion

Recursion handout
Recursion with arrays handout
Binary search handout

Recursion Practice and Examples

Recursion I Slides
Recursion III Slides
Recursion IV Slides