Lab 2

IntelliJ and IntLists

Announcements

  1. Lab 1, Lab 2, and HW 0 due Friday 1/28 (all of these CANNOT be dropped)
  2. HW 1 released, due next Tuesday 2/1
  3. OH starts this week completely online - schedule on course website

Lab Partners

For this lab, and most remaining labs, partners are allowed. Some guidelines:

  • Only pairs, only for lab assignments
  • Both students must commit and submit from their own repo, though code may be identical.
  • Course staff will facilitate partner matching through this form. You may also use the Piazza Search for Teammates feature.
  • If you have a partner, fill out partner.txt. Even if you do not have a partner, don't delete the file!
  • You may have different partners each week.

IntelliJ Setup Demo

IntList Overview

            
              IntList L = new IntList(1, new IntList(2, new IntList(3, null)));
            
          

2 head tail 3 head tail 1 head tail L:

A method can be destructive or non-destructive.

Destructive: modifies the object that was passed in

Non-destructive: does not modify the object that was passed in