标签:
public class Test { /** * @Description: 字符串排序 * @param * @return void * @throws */ public static void main(String[] args) { String tmp = "1asdfas2323dfa348edadssdf"; byte[] byteArray = tmp.getBytes(); java.util.Arrays.sort(byteArray); for (byte b : byteArray) { System.out.println(b); } String last = new String(byteArray); System.out.println(last); } }
标签:
原文地址:http://my.oschina.net/ydsakyclguozi/blog/423400