Tag: derived class
-
How to find First and Second biggest number from the given array of Integers ?
This is the complete solution to find the first and second biggest number from an array of integers. This solution is designed to solve the problem using an interface, super class and two derived classes implementing the interface.
-
How to find Triplets whose sum is divisible by 9 from the given array of Integers ?
This is the complete solution to find the Triplets whose sum is divisible by 9. This solution is designed to to solve the problem using an interface, super class and two derived classes implementing the interface.
-
How to find the Max and Min Length Strings in a given sentence ?
This is the complete solution to find the Max and Min Length Strings from the given sentence. This solution is designed to to solve the problem using an interface, super class and two derived classes implementing the interface.
-
How to find the reverse of each word in a given sentence ?
This is the complete solution to find the reverse of each word from the given sentence. This solution is designed to to solve the problem using an interface, super class and two derived classes implementing the interface.
-
How to find the Sum of Digits in an Alphanumeric value ?
This is the complete solution to find the sum of digits in an Alphanumeric value. This solution is designed to to solve the problem using an interface, super class and two derived classes implementing the interface.
-
How to find the Duplicate words in a given sentence ?
This is the complete solution to find the duplicate words in a given sentence . This solution is designed to to solve the problem using an interface, super class and two derived classes implementing the interface.
-
How to find the nth Largest number in a Generic Array or an ArrayList ?
This is the complete solution to find the nth Largest number in a Generic Array or an ArrayList. The values available in an Array or ArrayList are either integers, or Strings or Doubles . This solution is designed to to solve the problem using an interface, super class and two derived classes implementing the interface.
-
How to check whether a given integer is prime number or not ?
This is the complete solution to check whether a given integer number is prime or not. This solution is designed to to solve the problem using an interface, super class and four derived classes implementing the interface. The core logic is to check the divisibility of the given number, from 2 to till the square…
-
How to check whether the given strings or sentences are Anagram or not?
This is the Java 8 solution to check whether the given string or lines of strings are Anagram. This solution contains all the approaches which were implemented in Java 7 under the heading ‘Happy Path Solution’ (Till Java 7). The respective Junit 5 test is provided in the link next to this code solution under…
