Finding Factors Of A Number In Java