I'm trying to create a folder with the name equal to the current date but it just does not create.
import java.util.*;
import java.io.File;
public class PastaData {
Date data = new Date();
SimpleDateFormat formatar = new SimpleDateFormat("d/m/y");
String dataFormatada = new formatar.format(data);
System.out.println("dataFormatada");
File file = new File(dataFormatada);
file.mkdir();
}