问题:[问答题]
第1处:xVal;第2处:showMessageDialog
● 参考解析
本题主要考查Integer类与JOptionPane类的用法。Integer类的具体方法可以参考相关书籍,其中有一个静态方法staticintparseInt(Strings)表示:此方法(parseInt)为类方法(static),返回类型为(int),方法所需参数为String类型;JOptionPane类的静态方法staticvoidshowMessageDialog(ComponentparentComponent,Objectmessage)调出标题为message的信息消息对话框。