finished GET mehtod in lab1 java exercise for networks