Posted by Anonymous on Wednesday 27th April 2011 08:27:03 - Never Expires
download | new post
- import java.util.Arrays;
- import java.util.Collections;
- import java.util.Iterator;
- import java.util.LinkedList;
- import java.util.Random;
- import javax.swing.JOptionsPane;
- public class Main
- {
- {
- if (node == 0)
- {
- return; // Why must we go on if there is no work?
- }
- // Fill the list with random values...
- for (int i = 0; i < node; i++)
- {
- }
- int count, total, med, hi, low = 0, 0, 0, 0, 151;
- // Sort the list...
- // Calculate information based on the list...
- while (iter.hasNext() == true)
- {
- count++;
- total += val;
- if (num < low) low = val;
- if (num > hi) hi = val;
- if (count == (node / 2)) med = val;
- }
- // Print out our results...
- }
- }
Submit a correction or amendment below. (click here to post a fresh rage)
After submitting an amendment, you'll be able to view the differences between the old and new rage easily.