Here you can find the source of getUniqueFileName()
public static String getUniqueFileName()
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getUniqueFileName() { return new SimpleDateFormat("yyyy_MM_dd__HH_mm_ss_SSS").format(new Date(System.currentTimeMillis())); }/*from ww w . j a va 2s . c om*/ }