home work and class work for java