Java execises from Lab