Students, please be sure to log in. This site does not use cookies and does not track/store work submitted when not signed in.
Unit 7 Problems
Java Reference Sheet
only14([1, 4, 1, 4]) -> true
for(int el : nums){
The following are methods of a list that can be used to manipulate the contained data.
only14
Objective: Write program code to create, traverse, and manipulate elements in 1D array or ArrayList objects.
Given a list of ints, return true if every element is a 1 or a 4.