分类: WINDOWS
2011-11-14 10:19:52
import java.util.UUID;
public class IdGenerate {
public static String getUUIDString() {
String id = UUID.randomUUID().toString();
id = id.replace("-", "");
return id;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(IdGenerate.getUUIDString());
}
}