The operator - is undefined for the argument type(s) String, int 是什么錯誤?
System.out.println("three"+"-"+"="+three-one); ? ? ? ?System.out.println("three"+"*"+"="+three*one); ? ? ? ?System.out.println("three"+"/"+"="+three/one); ? ? ? ? ? 輸出的第一行報錯:“The operator - is undefined for the argument type(s) String, int”是什么意思????
2016-07-19
System.out.println("three"+"-"+"="+(three-one)); ? ? ? ?
? ? System.out.println("three"+"*"+"="+three*one); ? ? ? ?
? ? System.out.println("three"+"/"+"="+three/one);?
2016-07-19
你的“-”號被當做未定義的變量了
2016-07-19
有未定義的整形或者字符串變量,注意:如果一個表達式不是已定義的變量,要用英文半角引號引起來