Java: Narcissistic numbers generator