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 8 Problems
Java Reference Sheet
hasOnes
Complete the method hasOnes, which iterates through a two-dimensional array and returns true if there is at least one element in every row that has a value of 1.
The following are examples:
Input
Result: true
Input:
Result: true
Input:
Result: false (the 2nd row does not contain a 1)