public static boolean isOdd(int i) { return i%2==1; } 转载于:https://www.cnblogs.com/vicky8081/archive/2006/05/11/397602.html