I would like to print the entire array sPack[]
. I take in up to 500 values into sPack
then I sort in ascending order. My median value is off so I would like to print what my sort method is doing so I can see if it is an issue with my median method or my sort method.
int [] sPack = new int [500];
int i = 0;
String input = br.readLine();
while(input!=null && i<500 && input.length()!=0)//(!input.isEmpty()&& i<500)//
{
sPack [i] = Integer.parseInt (input);
i++;
input = br.readLine();
}
sort(sPack, i);
double Var = calcVariance(sPack,i);
System.out.println (sPack); //this is where i need help***************<==