import java.util.*;
import java.text.SimpleDateFormat;
import java.util.Date;
public class RandomGen {
public String genRandom() throws Exception {
String random = "";
Date date = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("yyMMddHHmmssSS");
random+=sdf.format(date);
return random;
}
}
No comments:
Post a Comment