JFileChooser(showSaveDialog) cant get the value of the extension file chosen
问题 Im making a desktop application and it has a JFileChooser(ShowSaveDialog) function.. When I tried to save a sample text file the program didnt get the extension file that I chose.. I'm trying to use the if else or switch statement and I cant figure it out what command will I use to get the string/Int value for the condition if pdf,word or txt extension is chosen as file extension... public class Save { static boolean flag = false; public static void main(String[] args) throws IOException,