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) {

Similar Questions
  1. **Q16:**- Create a function called `minifigs_from_themes` that takes as input a theme id (as an integer) and outputs all the
    1. answers icon 1 answer
  2. 9.10: Reverse ArrayWrite a function that accepts an int array and the array’s size as arguments. The function should create a
    1. answers icon 3 answers
  3. **Q17:**- Create a function called `sets_from_minifig` that takes as input a minifig number (as a string) and returns a list of
    1. answers icon 1 answer
    1. answers icon 3 answers
more similar questions