JOptionPane.showInputDialog(Component compt, Object o, String string, int i, Icon icon);
in the above line I didn't understood any parameters and also I provided string in the place of object and it stills works. Can anybody explain correct procedure.
According to java docs
ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE