Wednesday
December 17, 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...
programming - write a java application to calculate the exponent value of a ...
math - there are 8 consecutive integers that add up to 31. Only two of the ...
Java Help - I am just starting out in programming. If someone could help me with...
Programming Problems - Include names of students from the user, terminated by ...
Computer Science - Answer the following question without running the code. The ...
C++ Programming - Design and create a class named Stats that has an array of 12 ...
computer science - 9.10: Reverse Array Write a function that accepts an int ...

Search
Members