liuyunche

public class Homework17;{

public static void main (string[] args){

String str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";

 Random rand = new Random();

StringBuilder a = new StringBuilder(4);

for(int i=0;i<4;i++){

char c = str.charAt(rand.nextInt(str.length()));

a.append(c);

}

System .out.println(a.toString());

}

}

分类:

技术点:

相关文章:

  • 2020-06-01
  • 2019-08-29
  • 2021-12-31
  • 2021-11-22
  • 2021-07-23
  • 2021-12-10
  • 2021-11-04
猜你喜欢
  • 2018-04-24
  • 2021-11-30
  • 2021-12-18
  • 2021-10-19
  • 2021-12-31
  • 2021-05-24
  • 2021-11-29
相关资源
相似解决方案