标签:c99 images ring string import ges str round win
1:导入图形界面方法(输入方法)
import javax.swing.JOptionPane;
1 import javax.swing.JOptionPane; 2 public class test2 { 3 public static void main(String[] args) { 4 String result; 5 result=JOptionPane.showInputDialog(null,"你的学号是?"); 6 JOptionPane.showMessageDialog(null, "你好,"+result+"!"); 7 } 8 }
2:显示输出
JOptionPane.showMessageDialog();
标签:c99 images ring string import ges str round win
原文地址:http://www.cnblogs.com/ZXWds/p/6032434.html