added java lab1 and lab2