分类: Java
2008-07-23 22:41:55
import java.util.*;
import java.text.SimpleDateFormat;
public class RandomFileName
{
public static void main(String[] args)
{
Date dt = new Date(System.currentTimeMillis());
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
String fileName = sdf.format(dt);
System.out.println(fileName);
}
}