Difference Between For Loop And While Do Java