Well i just got it, id like to say thanks for all the help, it was quite a little change.

public static void main(String[] args){

        String input = null;
        String Output = null;

        String In = JOptionPane.showInputDialog(null," Please enter a file plus its dot format");

        int index = In.lastIndexOf('.');

      String one = In.substring(index + 1);

        JOptionPane.showMessageDialog(null," You choose the " +one + " format");

why don't you save it as something like .bat .doc .html .ppt etc

if this does not work send me an e-mail at my PC shop


Edited by Nick Evan: removed mail

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.