吔翔的博客如果最后一位为1,它将进入if并打印奇数import java.util.Scanner;public class Even_or_odd {public void Check_even_or_odd(int a) {if(a&1)//error:Type mismatch: cannot convert from int to bool...
萌萌哒的黄桃的博客When i convert:int B=1;boolean A=B;It gives error: Incompatible types, which is trueBut when I write this code:int C=0;boolean A=C==1;it gives falsewhile if I change value of C to 1 it gives true.I do...