I got questions about creating files in Java.
I searched for some time and couldn't find way to save file with name defined by user (like you can in almost any other program).
Everywhere I look file name is defined in new File("something.sth") or things similar to that.
What I want to do is to write file with name defined by user and extension defined by me.
Something like: file1.aaa; file2.aaa;
etc.
Please help with comment or tutorial or part of code.
Thank you in advance :)