public static void main(String args[]){
        int input[] = {76,78,76,77,73,74};
        CheckIfArrayElementsAreConsecutive cia = new CheckIfArrayElementsAreConsecutive();
        System.out.println(cia.areConsecutive(input));
    }
http://www.geeksforgeeks.org/check-if-array-elements-are-consecutive/
src/com/interview/array/CheckIfArrayElementsAreConsecutive.java