automorphic number program in java