Course Solutions Uncategorized (Solved) : Create Program Named Sortjava Reads Primes1txt Unsorted Prime Numbers Less One Million Sto Q26673751 . . . .

(Solved) : Create Program Named Sortjava Reads Primes1txt Unsorted Prime Numbers Less One Million Sto Q26673751 . . . .

 

Create a program named sort.java that reads in primes1.txt(unsorted prime numbers less than one million) and stores them intoan ArrayList. Compare sorting this list using the bubble sort,selection sort, and merge sort. Each sort should list the elapsedtime, iterations, and print the first 10 and last 10 numbers in thearray.

Extra Credit: add another sorting algorithm ofyour choice.

This is what I have so far but for some reason the last tenprime numbers are not printing and the first ten prime numbers withSelection sorting are being displayed all wrong.

import java.io.*;

import java.util.*;

public class Sort

{

   static ArrayList<Integer> Data1 = newArrayList<Integer>();

   static ArrayList<Integer> Data2 =

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post