在Java中使用冒泡排序二维数组

时间:2017-04-24 12:18:43

标签: java arrays sorting bubble-sort

我希望修改一个用于一维数组的冒泡排序,以便对二维数组进行排序。老实说,我很难搞清楚必要的变化。我的代码如下。

感谢任何帮助/反馈,谢谢!

[
    ["November 2016", "December 2016", "January 2017", "February 2017", "March 2017"],
    ["total", 2, 43, 59, 51, 41],
    ["mammo", 1, 20, 33, 12, 12],
    ["face", 1, 20, 16, 30, 27],
    ["body", 0, 3, 10, 9, 2],
    ["photo", 0, 19, 27, 12, 5],
    ["scan", 2, 24, 32, 39, 36]
]

0 个答案:

没有答案