Lecture 2: First Steps With Java

This lecture reviews some elements of Java syntax by working through a small programming task. It looks at how data can be obtained from standard input using Java’s Scanner class and introduces the concept of creating instances of classes (known as objects) using the new operator. It also looks at how methods are invoked – firstly on Scanner objects, to do input, and then on the object System.out, to do output.

Useful resources: