public static boolean isOdd(int i)函数
{方法
return i%2 == 1;static
}return
当 参数 i < 0的时候,该函数会失效。i%2==-1而不是1.参数
修正方法: return i%2 != 0;
对于全部的a(int)和非0(b)(int)恒有
( a/b)*b + ( a % b) == a
用b整除a,将商乘以b,而后加上余数,那么就获得了 a.