Array Using While Loop Java