Thursday
April 24, 2014

Homework Help: Programming Language

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

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

computer science - Create a method called countZeros, which takes an integer ...
programming - create a program that prompts the user for a number the returns ...
programming - How do i read in a vector of integers with a space inbetween (i.e...
math - there are 8 consecutive integers that add up to 31. Only two of the ...
programming - write a java application to calculate the exponent value of a ...
Computer Science - Answer the following question without running the code. The ...
Programming Problems - Include names of students from the user, terminated by ...
Java Help - I am just starting out in programming. If someone could help me with...
Programming - I suppose to write a program that calculates the average of up to ...
la sallle - There are 3 consecutive even integers such that the quotient ...

Search
Members