日期:2014-05-20  浏览次数:20612 次

console()??????????
console()方法在哪个包和类中,在我下载的jdk中的lang包中的System类中找不到这个方法?       是不是版本问题,这个方法变成了什么?

------解决方案--------------------
console
public static Console console()Returns the unique Console object associated with the current Java virtual machine, if any.

Returns:
The system console, if any, otherwise null.
Since:
1.6

jdk1.6才支持!