While Loop Problems In Java Programming