Inf1 OP : Lab Sheet Week 4
Overview

This week’s exercises will give you practice in writing static methods in Java. These are fairly similar to functions in Haskell.

Furthermore, you will learn about the standard input and output streams (StdIO) and how you can use the class java.util.Scanner from the Java library for reading user input at runtime.

Lastly, we will look at different ways of handling errors using return values and basic exceptions.