Tag: ArrayIndexOutOfBoundsException
-
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 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…
