Java :how to program : early objects