Basic Java Code