為啥結(jié)果不對(duì)?
HelloWorld.java
public?class?HelloWorld{??
??public?static?void?main(String[]?args)?{??
??????int?a=16;??????
? ? ?double?b=9.5;????????
? ? ?String?str1="hello";????
? ? ?String?str2="imooc";???????
? ? ?System.out.println("a等于b:"?+?(a??==?b));????
? ? ?System.out.println("a大于b:"?+?(a?>??b));??
? ? ?System.out.println("a小于等于b:"?+?(a?<=??b));?
? ? ? System.out.println("str1等于str2:"?+?(str1??==?str2));???
?}
}
error: ')' expected
System.out.println("a??b?" + (a b));
^
error: ';' expected
System.out.println("a??b?" + (a b));
^
error: ')' expected
System.out.println("a????b?" + (a b));
^
error: ';' expected
System.out.println("a????b?" + (a b));
^
error: ')' expected
System.out.println("str1??str2?" + (str1 str2));
^
error: ';' expected
System.out.println("str1??str2?" + (str1 str2));
^
6 errors
2015-09-11
服務(wù)器延時(shí)!
2015-07-11
刷新出來(lái)了