int one = 22 ;
if(one%2==0){
System.out.println("偶数");
}
else
{
System.out.println("奇数");
}
if(one%2==0){
System.out.println("偶数");
}
else
{
System.out.println("奇数");
}
2015-02-26