Post a New Question

Programming Language

posted by .

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.

data:{2, 1, 1, 8, 1, 0}
==> 3

public int countSelected (int[] data, int select) {

Answer This Question

First Name:
School Subject:

Related Questions

More Related Questions

Post a New Question