Java面试题:请将String s="7904652"排序后输出
package com.demo;
import java.util.Arrays;
public class Test {
public static void main(String[] args) {
String s="7904652";
char[] ch=s.toCharArray();
Arrays.sort(ch);
String m=new String(ch);
System.out.println(m);
}
}