Long story short beginner programer here practicing with java. Right now I'm taking two arrays and I want to find out if int arrayA (7,14,21,28) is consecutive to int ArrayB meaning does arrayB have (7,14,21,28) consecutively within the array. If it is the boolean returns true if not it shall simply return false. Here is an example of my code.
public class Harrison7aTest
{
public static void main(String [] args)
{
int[] arrayA = {7,14,21,28};
int[] arrayB = {1,3,5,7,14,21,28,32};
boolean result = false;
for(int A = 0; A < arrayA.length - 1; A++)
{
for(int B = 0; B < arrayB.length - 1; B++)
{
}
}
}
}