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...
In Java, you cannot directly write the executable statements in class. You need to move your code in a method. Only variables declaration ...
-
April 4, 2022
- 0 Comments