生成一個惟一的6位字符編碼(到2063年前一直生效)的JAVA 方法

public String unRepeatSixCode() { String sixChar = ""; SimpleDateFormat sdf = new SimpleDateFormat("yyMMddHHmmss"); Date date = new Date(); String time = sdf.format(date); for (int i = 0; i < time.len
相關文章
相關標籤/搜索