Lab 3 FAQ

There’s a lot of red in my IntelliJ

First, be sure you’ve imported the libraries correctly. Refer back to the Assignment Workflow if you need a refresher on how to do this.

If that doesn’t work, be sure that src is blue and tests is green. Refer to the IntelliJ WTFs to mark your src and tests folders appropriately.

My program never finishes in Boxes and Pointers

That’s the cycle! After L1.rest.rest.rest = L2;, the list points back into itself, so any code that walks the list (like printing it) runs forever. Use the debugger and Java Visualizer to inspect the lists instead; the final line of main breaks the cycle.