I tried creating a file with empty title or just a space and it worked but I cannot find the file in the directory. I could not even delete or rename file.
File dir1 = new File("dir1");
dir1.mkdir();
File file1 = new File(dir1, "");
file1.createNewFile();
System.out.println(file1.exists());
always returns true even if I execute file1.delete()
or file1.renameTo(...)