Kotlinlearncs.online LogoJava
Return to List

Solve: Array Front 9

Imported By: Geoffrey Challen
/ Version: 2021.5.0

Given an IntArray, return true if one of the first 4 elements in the array is a 9. The array length may be less than 4.

fun arrayFront9(values: IntArray): Boolean {
return false // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: