-3
I am trying to create an application that takes a user input stores in a variable and saves the input in a directory informed by it through the "save as" windows, but I can only access the file explorer and not a "save as" window (same in print)there is some way to do this?
import java.io.IOException;
import java.util.Scanner;
public class Runtimetest {
public static void main(String[] args) throws IOException {
Scanner input = new Scanner(System.in);
String texto = input.nextLine();
Runtime.getRuntime().exec("explorer.exe");
}
}