Print Number In Ascending Order In Java