While Loop Program Question In Java