Anonymous user
Narcissistic decimal number: Difference between revisions
→{{header|Java}}
m (→optimized, unrolled: corrected a comment.) |
|||
Line 1,006:
{{works with|Java|1.8}}
The statics and the System.exit(0) stem from having first developed a version that is not limited by the amount of narcisstic numbers that are to be calculated. I then read that this is a criterion and thus the implementation is an afterthought and looks awkwardish... but still... works!
<lang java5>
import java.util.stream.IntStream;
|