Topic: 关于JOptionPane.showInputDialog问题

  Print this page

1.关于JOptionPane.showInputDialog问题 Copy to clipboard
Posted by: moon1111
Posted on: 2006-07-17 04:46

我照着书里面的打
import javax.swing.*;
public class duihua {
public static void main (String args[]) {
String name = JOptionPane.showInputDialog ("please input your name!");
String input = JOptionpane.showInputDialog ("plesae input youe age!");
int age = Integer.parseInt (input);
System.out.println ("hello, " + name + ". your age is: " + age);
System.exit (0);
}
}
它老是指着我的JJ报错误,到底是什么问题??

2.Re:关于JOptionPane.showInputDialog问题 [Re: moon1111] Copy to clipboard
Posted by: why
Posted on: 2006-07-17 08:13

What's JJ?
You should have read (and showed us) the error message.

String input = JOptionPane.showInputDialog ("plesae input youe age!");

3.Re:关于JOptionPane.showInputDialog问题 [Re: moon1111] Copy to clipboard
Posted by: 123428316
Posted on: 2006-08-30 22:44

String input = JOptionPane.showInputDialog ("plesae input youe age!");

P大写,,

4.Re:关于JOptionPane.showInputDialog问题 [Re: moon1111] Copy to clipboard
Posted by: lwfllr
Posted on: 2006-09-04 20:10

要注意大小写啊~~
你用记事本写的代码吗?~~
代码写错与写对是不一样的~~


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923