Short Java Program demostrating counting the numbers in the array that are consecutive in a given array. The program ends the counting if there atleast 4 numbers that are consecutive. If counter is less then 4, the function returns any number less then 4.