Hi I am trying to return two array, 1 as string and another as float; return both i searched on net it was confusing, i am new to oops
public String[][] loadcost(String[][] arr2, int tcount) {
int f1 = 1;
int f2 = 0;
int[] costarr = null ;
while (f2 < tcount){
arr2[f1][f2] = cost.nextLine();
costarr[f2] = Integer.parseInt (arr2[f1][f2]);
f2 = f2 + 1;
}
Arrays.sort(costarr);
return arr2 , costarr ;
my original request is to sort an 2-d array, it dint work with the code what i got on net
BBB 444 DDD 098 FF 19.01
would like to sort using the second column