Tag: Oracle Certified Professional Java SE8
-
How to check whether a number is Armstrong number or not
This is the third solution to check whether a given number is Armstrong number or not. This program uses the map() and reduce() methods of java streams.
-
How to find sum of digits in an alpha numeric value
This is the third solution to find sum of integers in a given alphanumeric string. This program uses the filter(), map() and reduce() methods of java streams.
-
How to find sum of integers in an array List
This is the third solution to find sum of integers in an array list. This program uses the reduce() method of java streams.
-
How to find nth terms in the fibonacci series using Multithreads and BigInteger datatype
This is the third solution to find the ‘nth terms’ in the fibonacci series using BigInteger data type. This program uses the Multithreads concept to find the more than one ‘nth terms’ in the fibonacci series in parallel to save the time.
-
How to find factorial of a BigIntegers using Multithreads
This is the fourth solution to find the factorial from the ArrayList of big integers using Multithreads. This program uses the Multithreads concept to find the factorial of given big integers in parallel to save the time.
-
How to find subsets of a given strings using Multithreads
This is the fourth solution to list all the subsets or substrings of a given strings from the ArrayList of Strings, using Multithreads. This program uses the Multithreads concept, and uses the String’s class substring method for intermediate processing of all sized sub strings.
-
How to find Missing Prime numbers from any given sequence of integers
This is the first solution to find the missing prime numbers from any given sequence of integers. This solution uses the Lambda expression with single abstract method. The solution is finding all the missing prime numbers between every pair for consecutive numbers from the given sequence till end. The logic for prime check is the…
-
How to reverse each word in a sentence using StringBuffer class
This is the third solution to reverse each word in the given input sentence. This program uses the Single Abstract method, which implemented by using Lambda expression.
-
How to find sum of digits in an integer value
This is the second solution to find the sum of digits of an integer value[s]. This solution defines a functional interface with single abstract method with lambda expression. The internal core logic converts an integer value to String, then parse each character to digit, and sums up each digit.
-
How to check whether a given integer is prime number or not
This is the third solution to check whether the given integer number is prime or not. This solution uses the Lambda expression with single abstract method. The implementation is to check the divisibility of the given number, from 2 to till the square root of the given number.
