Solve: Array Front 9
Imported By: Geoffrey Challen
/ Version: 2021.5.0
Given an int[]
, return true
if one of the first 4 elements in the array is a 9.
The array length may be less than 4.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.boolean arrayFront9(int[] values) {
return false;
}