While Loop Through String Array Declaration Java