problem with my bucket sort

import java.io.BufferedReader;

import java.io.DataInputStream;

import java.io.FileInputStream;

import java.io.InputStreamReader;

/**

*

* @author sss

*/

public class tryyyy444 {

//method BUCKET_SORT(A)

public static int[] bucketSort(int[] A, int n){

//let B[0 .. n – 1] be a new array

int[][] B = new int[A.length-1][5];

//for i = 0 to n – 1

//make B[i] an empty list;

for (int i=0; i<B.length; i++){

B[i][5]=0;

}

//for i = 1 to n

// insert A[i] into list B[ floor(n . A[i]) ];

for (int i=0; i<A.length; i++){

// B[A[i]]++;

int t = (int) Math.floor(n*A[i]);

B[t][5] = A[i];

}

///============================= insertion Code ====

// for i = 0 to n – 1

//sort list B[i] with insertion sort;

//================================================== ==

for (int j = 1; j < B.length; j++) {

int key;

int i;

key = B[j][5];

i = j - 1;

while (i >= 0 && B[i][5] > key) {

B[i + 1] = B[i];

i = i - 1;

// count++;

}

B[i + 1][5] = key;

//concatenate the lists B[0], B[1], …, B[n-1] together in order;

int [] C = new int[i];

key = C[i];

}

return A;

}