为什么编译通不过?哪里出了问题了? 作者: 张耀扬 时间: 2014-4-10 22:20
public class A{
public static void main(String[] args)
{
String s; // String s =null; 改成这样,即可通过编译 ;
int x = 99;
if (x < 100) s = "x is less than 100";
if (x > 100) s = "x is greater than 100";
System.out.println(s.length());
}
}