Tag: Arrays
-
How to remove duplicate numbers in an Array of integers using stream
This is the third solution to remove the duplicate numbers from an Array of integers. This program uses distinct method of Stream in the Arrays.
-
How to find sum of digits in a number using stream
This is the third solution to find the sum of digits of an integer value[s]. This solution uses the map(), and reduce() methods of Arrays stream.
-
How to find Nth largest number in an array
This is the third solution to find the Nth largest number from an array of given integers or doubles or strings. This program defines one generic functional interface, with multiple Lambda expressions utilizes the same based on the data type. The internal logic utilizes the sort method of the Arrays class.
-
How to find Nth largest number in an array
This is the second solution to find the Nth largest number from an array of given numbers. This program uses the Lambda expression, and the internal logic utilizes the sort method of the Arrays class.
-
How to count whether any number in an array repeated twice or thrice
This is the third solution to count whether any of the number in an array repeated twice or thrice from the same array of integers using functional interface and lambda expression.
-
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.
