Uuid generate a string of symbols and remove excess

for(int i=0;i<10;i++){
String uuid = UUID.randomUUID().toString().replaceAll("-", "");
System.out.println(uuid);
}

Guess you like

Origin www.cnblogs.com/qingmuchuanqi48/p/11427347.html