📜  Java Super Power java - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:31.146000             🧑  作者: Mango

代码示例1
import javax.swing.JOptionPane;public class SuperPower{public static void main(String[] args) {String power;power = JOptionPane.showInputDialog("What is your super  power?");power = power.toUpperCase();JOptionPane.showMessageDialog(null,power+" TO THE RESCUE!");}}