顺便代码
domain.zip
(900.86 KB, 下载次数: 34)
- public static void main(String[] args) throws Exception {
- FileWriter fw = new FileWriter("d:\\domain.txt", true);
- String[] letter={"q","w","e","r","t","y","u","i","o","p","a","s","d","f","g","h","j","k","l","z","x","c","v","b","n","m"};
- for (int a=0;a<letter.length;a++){
- for (int b=0;b<letter.length;b++){
- for (int c=0;c<letter.length;c++){
- for (int d=0;d<letter.length;d++){
- fw.write(letter[a]+letter[b]+letter[c]+letter[d]+".com\n");
- }
- }
- }
- }
- fw.close();
- }
复制代码 |