這個JOptionPane命令爲什麼不起作用?爲什麼這個JOptionPane命令不起作用?
if (let != 'D' || let != 'S' || let != 'M' || let != 'A' || let != 'X'){
JOptionPane.showMessageDialog (null, "Wrong character entered.",
JOptionPane.ERROR_MESSAGE);}
這似乎給我的錯誤信息:
JOptionPane.showMessageDialog (null, "Wrong character entered.", JOptionPane.ERROR_MESSAGE);}
^
method JOptionPane.showMessageDialog(Component,Object,String,int,Icon) is not applicable (actual and formal argument lists differ in length)
method JOptionPane.showMessageDialog(Component,Object,String,int) is not applicable (actual and formal argument lists differ in length)
method JOptionPane.showMessageDialog(Component,Object) is not applicable (actual and formal argument lists differ in length)