Essay on Java

767 Words4 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 = new…show more content…
There are 10000 votes. The number of votes and percentage earned for each tabulator are printed by the class ThreadStatisticsSetup. Each thread in the RequestProcessor class must use a lock before accessing the

More about Essay on Java

Open Document