Required: Variable Found: Value
You switched the operands in your assign statement. Switch this Math.abs(a[i]-a[i-1]) = biggestGap; to this biggestGap = Math.abs(a[i]-a[i-1]); Math.abs(a[i]-a[i-1]) returns just an int value … Read more
You switched the operands in your assign statement. Switch this Math.abs(a[i]-a[i-1]) = biggestGap; to this biggestGap = Math.abs(a[i]-a[i-1]); Math.abs(a[i]-a[i-1]) returns just an int value … Read more
In Java, you cannot directly write the executable statements in class. You need to move your code in a method. Only variables declaration … Read more