大家帮我看看这个有什么错误?

javagodness 2005-03-12 09:47:57
// Property.java
import java.util.*;

public class Property {
public static void main(String[] args) {
System.out.println(new Date());
Properties p = System.getProperties();
p.list(System.out);
System.out.println("--- Memory Usage:");
Runtime rt = Runtime.getRuntime();
System.out.println("Total Memory = "
+ rt.totalMemory()
+ " Free Memory = "
+ rt.freeMemory());

try {
Thread.currentThread().sleep(5 * 1000);
} catch(InterruptedException e) {}
}
}

}
...全文
68 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
qiyongjun2003 2005-03-12
  • 打赏
  • 举报
回复
catch(InterruptedException e) {}
--->
catch(InterruptedException e) {}
{
vgvg 2005-03-12
  • 打赏
  • 举报
回复
最后面多了一个括号
shendiaodaxia 2005-03-12
  • 打赏
  • 举报
回复
多了一个
}

62,635

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧