无法判断我的基数排序在Java中是否正常工作?

无法判断我的基数排序在Java中是否正常工作?,java,sorting,radix-sort,Java,Sorting,Radix Sort,我的代码无法正常工作。它应该要求用户定义数组的大小,然后求基数并使用它对数组进行排序。当我试图显示排序的数组以检查它是否已排序时,它会输出[]。下面是我的代码 公共静态无效字符串[]args{ //此处的TODO代码应用程序逻辑 System.out.println请输入数组的大小:; 扫描仪输入1=新的ScannerSystem.in; int numBits=input1.nextInt; 扫描仪输入2=新的ScannerSystem.in; System.out.PrintLn请输入基数

我的代码无法正常工作。它应该要求用户定义数组的大小,然后求基数并使用它对数组进行排序。当我试图显示排序的数组以检查它是否已排序时,它会输出[]。下面是我的代码

公共静态无效字符串[]args{ //此处的TODO代码应用程序逻辑 System.out.println请输入数组的大小:; 扫描仪输入1=新的ScannerSystem.in; int numBits=input1.nextInt; 扫描仪输入2=新的ScannerSystem.in; System.out.PrintLn请输入基数的大小:; int radixNum=input2.nextInt; getBitsradixNum; ArrayList sortIt=新的ArrayList; radSortsortIt、radixNum、numBits; System.out.printlnsortIt.toString; } 私有静态int getBitsint radixNum{ double lognum=Math.log10000; double logbase=Math.logradixNum; int numBits=int Math.floorlognum/logbase+1; System.out.printlnBits+numBits; 回归麻木; } /** *按基数排序对数组进行排序,其中基数由用户决定 * *@param sortIt *@param radixNum */ 私有静态数组列表radSortArrayList sortIt,int radixNum,int numBits{ ArrayList bucketStorage=新的ArrayList; 阵列列表温度; 温度=sortIt; int tempnub; 对于int i=0;i}您试过调试代码吗?我试过运行它,但无法显示排序的数组。我们从未真正讨论过netbeans中的调试。