We started with a review. 

One quick warmup question: what's the difference between Integer and int. 

No matter how much they made them look alike, we still have: 

-bash-4.1$ cat One.java
public class One {
  public static void main(String[] args) {
    int a, b;
    Integer x, y;
    a = 2;
    b = 3;
    x = new Integer(3);
    y = 5;
    System.out.println(a + ", " + b);
    System.out.println(x + ", " + y);
    System.out.println( b == x );
    y = new Integer(2);
    x = new Integer(2);
    System.out.println( "Is " + y + " equal to " +
                        x + "? Answer: " + (y == x) );
  }
}
-bash-4.1$ javac One.java
-bash-4.1$ java One
2, 3
3, 5
true
Is 2 equal to 2? Answer: false
-bash-4.1$

Hopefully this will make you want reach Chapter 8 faster. 

Next we developed the following program: 


import java.io.*;
import java.util.*;

public class Two {
  public static void main( String[] whatever ) throws Exception {
    System.out.println( whatever );
    System.out.println( whatever.length );
    System.out.println( Arrays.toString(whatever) );
    String name = whatever[0];
    File a = new File(name);
    System.out.println( a );
    Scanner b = new Scanner( a ); // because of this
    int count = 0;

    while ( b.hasNext() ) {
      b.nextLine();
      count = count + 1;
      System.out.println("I have read line " + count + ".");
    }

  }
}

--