请问错在哪?
package com.JavaDemo;import *;
public class JavaDemo
{
public static void main(String args[]) throws IOException
{
int a;
System.out.println("Start: ");
while (true)
{
a=(int)System.in.read()-48;
System.out.println("a="+a);
}
}
}
输入:
10
输出:
a=2
a=0
a=-35
a=-38
还有那个命令行参数(args)怎么用?