Java: Armstrong numbers generator