我试过代码:
import java.io.Console;
public class Default
{
public static void main(String args[]) throws IOException
{
Console console = System.console();
String testing = console.readLine("Enter Name: ");
System.out.println("Entered Name: "+ testing);
}
}
Run Code Online (Sandbox Code Playgroud)
转到异常,出现以下错误:
Source not found. NullPointerException
我正在使用Eclipse Juno EE进行调试..!
以上编写的代码的参考链接在这里
| 归档时间: |
|
| 查看次数: |
9055 次 |
| 最近记录: |