 |
|
|
|
SCHOOL SUBJECTS
-
-
-
-
-
-
-
-
-
-
-
-
|
|
|
GRADE LEVELS
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|
|
|
|
|
Post a New Question | Current Questions | Chat With Live Tutors
Posted by Josh on Wednesday, October 28, 2009 at 4:31am.
Create a method called countSelected, which takes an array of integers and an integer as input parameters and returns the number of occurences of the integer in the array.
Example:
data:{2, 1, 1, 8, 1, 0}
select:1
==> 3
public int countSelected (int[] data, int select) {
|
No one has answered this question yet.
Answer this Question
For Further Reading
|
|
|
 |