Java lab programs