If frequency of current element is not zero and frequency of current element is less than frequency of first largest element , but greater than y element
else if ( Integer . parseInt ( String . valueOf ( curr . getValue ( ) ) ) > y . first ) {