Collections.sort()方法,字元排序

westwolf發表於2021-09-09
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;

public class CollectionsTest {
    public void testSort3() {
        StringBuilder st = new StringBuilder();//構建StringBuilder類
        List stringlist = new ArrayList();
        String str = "0123456789abcdefghijklmnobqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
        for (int i = 0; i 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4662/viewspace-2799585/,如需轉載,請註明出處,否則將追究法律責任。

相關文章