我希望能够在控制台或弹出窗口中显示消息,以便在未指定参数的情况下,我知道应该显示到哪里。
类似于:
类似于:
if( !file.exists() ) {
if( fromCommandLine()){
System.out.println("File doesn't exists");
}else if ( fromDoubleClickOnJar() ) {
JOptionPane.showMessage(null, "File doesn't exists");
}
}