Tag: nextInt
-
How to check whether a number is Disarium or not using stream
This is the second solution to check the number for Disarium. This solution uses IntStream, reduce methods of Stream. The Disarium number is say for a given number 351, evaluate the powers from the left side as power (3 * 1) + power (5 * 2) + power (1 *3) , the sum of all…
-
How to find factorial of a number using Stream
This is the fifth solution to find the factorial of a number using Stream. This program uses the LongStream, range(), reduce() methods.
-
How to find nTh number of Fibonacci series
This is the second solution to find the nTh number of the Fibonacci series using recursion approach.
-
How to find nTh number of Fibonacci series
This is the first solution to find the nTh number of the Fibonacci series.
-
How to find Nth largest number in an array
This is the first solution to find the Nth largest number from an array of given numbers. This program uses the sort method of the Arrays class.
-
How to find reverse of an integer value using the core logic
This is the fourth solution to find the reverse of an integer value, by using the core logic of forming the number in the reverse order.
