I write application in Java using SWT. I would like to create unique file name. But I do not want create it on hard drive. Additional functionality: I want to create unique file name in specify folder.
public String getUniqueFileName(String directory, String extension) {
//create unique file name
}