Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Java IDE
打印话题 寄给朋友 订阅主题 |
作者 | A strange problem using Eclipse 2.1.1 |
ppp5
发贴: 26 积分: 0 |
于 2003-10-27 18:21
Hi! I write a small program using Eclipse 2.1.1 editor. My jdk version is 1.4.2_02. I have a strange problem happen. My simple codes are: import java.util.*; public class Random { public static void main(String[] args) { Random rd = new Random(); int va = rd.nextInt(); System.out.println("va = " + va); } } It shows the error message and one warning message: Error message: Error: The method nextInt() is undefined for the type Random Random.java ex03_07/src line 20 Warning message: The import java.util.*; is never used. But I check the Random class is under java.util.*; I don't know why. Is it the Eclipse's bug? I use the JCreator 2.5 without any problem. Thanks. 初学者与<书> |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
3776 | A strange problem using Eclipse 2.1.1 | ppp5 | 721 | 2003-10-27 18:21 |
3126 | Re:A strange problem using Eclipse 2.1.1 | ppp5 | 172 | 2003-10-27 18:27 |
已读帖子 新的帖子 被删除的帖子 |
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 |