标签:
package wanzai; import java.util.*; public class Suijishu { public static void main(String[] args) { String str="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; Random ran=new Random(); for(int i=0;i<4;i++) { int j=ran.nextInt(str.length()-1); String s=str.substring(j, j+1); System.out.print(s); } } }
标签:
原文地址:http://www.cnblogs.com/jiang2538406936/p/5267943.html