Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
int array[] = {1,2,1,2,3,3};
private static Boolean isConsecutive(int array[]) {
return Arrays
.sum() == array.length;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.