思路:冒泡排序,compareTo)或compareToIgnoreCase)比较字符串 package com.jn.test; /* * 给定一个字符串数组{“nba”,”abc”,”cba”,” … Continue reading 给定一个字符串数组{“nba”,”abc”,”cba”,”zz”,”qq”,”haha”},请按照字典顺序进行从小到大的排序。
思路:冒泡排序,compareTo)或compareToIgnoreCase)比较字符串 package com.jn.test; /* * 给定一个字符串数组{“nba”,”abc”,”cba”,” … Continue reading 给定一个字符串数组{“nba”,”abc”,”cba”,”zz”,”qq”,”haha”},请按照字典顺序进行从小到大的排序。