Revised In Class Java Example

In class work.