我無法理解加法運算符或short數據類型的想法。 據說, short a = 1;
short b = 2;
short c = a + b;
這將不能編譯,因爲除了運營商總是投short,chart,byte數據類型,以int,我理解這一點。但是這個; short c = 1 + 2;
完全沒問題。因此,如果加法運算符自動將short轉換爲int,然後應用結果(其中結果的結果將是in
我要求用戶輸入兩個隨機數(即110),那麼我也添加了包含性,所以(110)將55 public int sum(int num1, int num2) {
int counter; //just a variable until I clean this up and get it to work
questions++;
if (num1 < num2) {