Java lab