KotlinCS 124 LogoJava

Lessons

CS 124 daily lessons mix text, interactive walkthroughs, video content, and small practice and homework problems.

Each one brings you one step closer to mastering the basics of computer science and programming. And the course staff will accompany you every step of the way, to ensure that you are not alone.

Spring 2024

03/29/2024: Lists Review and Performance

Kotlin
Java

Next we'll continue discussing linked lists and implement a few list methods together.

03/28/2024: Linked Lists

Now for a different take on lists, we'll examine lists that store the position of items using reference linking.

03/27/2024: Algorithms and Lists

This lesson starts the third half of the class, our exploration of data structures, algorithms, and algorithm analysis.

03/26/2024: Continuing MP0

Let's continue MP0 and review how to submit your work.

03/25/2024: Getting Started with MP0

Today we'll begin work together on the machine project!

03/22/2024: Lambda Expressions

This lesson explores lambda expressions, a terse way of implementing interfaces using anonymous classes.

03/21/2024: Anonymous Classes

Let's dive in to the world of anonymous classes.

03/20/2024: Practice with Interfaces

This lesson continues our practice with interfaces.

03/19/2024: Implementing Interfaces

Next we'll examine how to implement interfaces on our own classes.

03/18/2024: Using Interfaces

Let's take the first step to understanding interfaces.

03/08/2024: Working with Exceptions

This lesson continues our practice with exceptions.

03/07/2024: Throwing Exceptions

Let's continue to learn about exceptions by finding out how and when to generate our own errors.

03/06/2024: Catching Exceptions

Next we'll begin learning how to work with exceptions by understanding how to handle them when they occur.

03/05/2024: References and Polymorphism

Let's combine what we know about polymorphism and references to deepen our understanding even further.

03/04/2024: References

Our focus in this lesson is on references, both generally and specifically.

03/01/2024: Data Modeling 2

Next we'll complete another data modeling exercise that pulls together everything that we've learned.

02/29/2024: Equality and Object Copying

What does it mean for two objects to be equal? And how do we copy them? In this lesson we'll find out.

02/28/2024: Polymorphism

This lesson introduces a big new word and a big new idea: polymorphism.

02/27/2024: Inheritance

Our next lesson explores the relationships between classes established through inheritance.

02/26/2024: Data Modeling 1

This lesson puts our new abilities with objects to use modeling a real-world system.


02/23/2024

Companion Objects

Kotlin

Next we'll continue understanding Kotlin objects by exploring companion objects.

Static

Java

Next we'll continue understanding Java objects by exploring the static keyword and its implications.


02/22/2024: Encapsulation

In this lesson we'll investigate how to enable encapsulation through visibility modifiers and setters and getters.

02/21/2024: Constructors

Our next lesson examines what happens when objects are created.

02/20/2024: Objects, Continued

Let's continue our discussion of objects by examining object methods.

02/19/2024: Introduction to Objects

This lesson begins a new topic: objects.


02/16/2024

Let's explore a bit of programming internals, specifically your code is tranformed before it is executed in a process known as compilation.

Let's explore a bit of programming internals, specifically your code is tranformed before it is executed in a process known as compilation.


02/15/2024: Practice with Collections

Let's get a bit more practice with collections, those basic data structures that are so useful.

02/14/2024: Maps and Sets

Let's look at two more very useful collections: maps and sets.

02/13/2024: Lists and Type Parameters

Next we'll learn how to use lists, a linear data structure but one that is a bit more useful than the arrays that we've been working with so far.

02/12/2024: Imports and Libraries

This lesson may be the most important of the entire semester, since it shows you how to use other people's code!

02/09/2024: Multidimensional Arrays

This lesson expands our ability to work with sequential data into multiple dimensions!

02/08/2024: Practice with Strings

Let's reinforce what we know about strings by working with a few more problems together!

02/07/2024: null

How many problems can nothing cause? Quite a few! We'll learn more about the nothing that is a huge problem in this lesson.

02/06/2024: Algorithms and Strings

Our next lesson is on algorithms and strings, and gives us a bit more practice with both.

02/05/2024: Strings

Next we meet a new type of data and our first example of an object.

02/02/2024: Functions and Algorithms

In this lesson we'll explore the connections between functions and algorithms.

02/01/2024: Practice with Functions

Let's pause for a bit more practice with functions before we continue our journey together.

01/31/2024: More About Functions

Next we'll continue discussing functions and introduce several common algorithm patterns.

01/30/2024: Errors and Debugging

Let's examine errors, debugging, and maintaining a healthy mindset as you learn to work with computers.

01/29/2024: Functions

As we begin writing algorithms, let's stop and discuss how to organize our code into reusable units called functions.

01/26/2024: Practice with Loops and Algorithms

In this lesson we'll pause for more practice with loops and algorithms, including several chances to get practice solving real problems.

01/25/2024: Algorithms

Next we'll pull together everything we've learned so far and use our new skills to start solving real problems. Or, put another way, we'll start designing algorithms.

01/24/2024: Loops

In this lesson we'll cover our last core computer capability: the ability to repeat something multiple times, very quickly.

01/23/2024: Arrays

Let's learn about our first data structure: arrays, which put data values in order.

01/22/2024: Compound Conditionals

Next we'll examine how to make our conditional statements a bit more complex, allowing us to make more interesting decisions based on data in our programs.

01/19/2024: Conditional Expressions and Statements

One of the things that makes computers so powerful is their ability to make decisions. We'll explore that capability in our programs in this lesson.

01/18/2024: Operations on Variables

Our journey continues as we examine how we can manipulate the data stored by variables in our programs.

01/17/2024: Variables and Types

Let's begin our journey in computer science by presenting two of the basic building blocks of computer programs: variables and data types.

01/16/2024: Welcome to CS 124

Welcome to CS 124! We're excited to join you as you start your journey in computer science and programming. Today!