While Loop Java Format Double To String