While Loop for Factorials Java Files