Java Essay

797 Words Jan 12th, 2015 4 Pages
In the long distant future, in the year 2016, the cable news empire has fallen, and former talking heads have stooped to running for political office. In fact, five former talk show stars are running for President of the United States, and locked in a close race.
Your task is to design and implement a set of classes that process a collection of Integer objects, corresponding to votes for each candidate.

The integers are stored in a queue by a driver. In particular, the following code must compile error free and execute correctly on your implementation. You should implement your own generic Queue class. If you borrow code from elsewhere, cite your sources.

public static void main(String[] args) {
Queue<Integer> collection =
…show more content…
There are 10000

More about Java Essay

Open Document