Okay, I got rid of the errors. Now, how do I sort the numbers from least to greatest? Here is my new code:
import java.util.Scanner;
import java.util.Random;
public class SortedArray
{
...
Type: Posts; User: Chris07
Okay, I got rid of the errors. Now, how do I sort the numbers from least to greatest? Here is my new code:
import java.util.Scanner;
import java.util.Random;
public class SortedArray
{
...
The variable array is not initialized. So, I tried to add the following line of code:
public Sort(int[] oldArray, int sizeOfOldArray)
{
sizeOfArray = sizeOfOldArray;
array = new...
Jps, I've edited the post again and included further information on the error message.
---- Edited my original post ----
I would appreciate a quick response. Thanks in advance.
--------- Please delete this thread, thank you for all your help! ---------