【JAVA】输入输出方法
输出:
The showMessageDialog Method:
JOptionPane.showMessageDialog(null,
"Welcome to Java!",
“Display Message",
JOptionPane.INFORMATION_MESSAGE));
输入:
1.showInputDialog
firstNumber = JOptionPane.showInputDialog( "Enter first integer:");
2.Scanner
Scanner input = new Scanner(System.in);
balance=input.nextDouble();
浙公网安备 33010602011771号