Do while loop in java