Tag: IZ0-810
-
How to find intersection values of two Arrays
This is the first solution to find the intersection of two Arrays of integers. This approach follows the core logic of comparing each of the first array with each of element of the second array. This program uses couple of StringBuilder’s class methods.
-
How to reverse all the data values in an Array
This is the second solution to reverse all the data values in an Array. This solution uses Java Generics, which defines a Generic method for reversing given Array data values. This solution modifies the same array, and the resultant array has all the data values reversed. The data values are of any type such as…
-
How to find reverse of an integer and string data value
This is the fourth solution to find the reverse of an integer or string data value by using the Generics. The internal logic of the Generic method uses the reverse method of StringBuffer class.
-
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 find subsets of a given string
This is the third solution to list all the subsets or substrings of a given string. This approach uses functional interface with single abstract method implementation using lambda expression, the internal logic utilizes the String’s class substring method for intermediate processing of all sized sub strings.
-
How to check two sentences or strings are Anagram
This is the fourth solution to check whether the given two strings are Anagram are not. This program uses lambda expression with two parameters. The internal logic uses the String’s class methods toCharArray, contentEquals and Array’s sort method
-
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 length of alpha numeric value or string
This is the second solution to find the length of an alpha numeric or string value, using functional interface and lambda expression without return statement. This approach uses direct String class length method.
-
How to find array triplets with sum of two elements equals other element in the same array
This is the second solution to find array triplets, with sum of any two numbers equals with any other element in the same array. This approach uses functional interface and lambda expression.
