-
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.
-
This is the third solution to reverse all the numbers in the given array. This solution uses IntStream, range and map methods.
-
This is the second solution to find the leader numbers in an array in the forward direction. An element is leader if it is greater than all the elements to its right side. And the rightmost element is always a leader
-
This is the first solution to find the leader numbers in an array from the backward direction. An element is leader if it is greater than all the elements to its right side. And the rightmost element is always a leader
-
This is the third solution to find the maximum and minimum length strings from a given input sentence of strings, using the reduce() methods of stream.
-
This is the third solution to move all Zero numbers to the end of an arrayList. This solution uses filter(), map() methods of stream. The resultant arrayList has all the exists zero’s moved to end.
-
This is the fourth solution to find the Nth largest number from an array list of given integers or doubles or strings. This program uses the sorted(), and collectors() methods of 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.
-
This is the fifth solution to find the factorial of a number using Stream. This program uses the LongStream, range(), reduce() methods.
-
This is the fourth solution to reverse each word of given line of strings. This program uses the map() method of java stream, and reverse() method of StringBuffer.
