JAVA纠错题 总共6个错误

public String checkNum(String num) {

if (number/2=0)

                    System.out.println(“the number is even” );

     else

System.out.println(“the number is odd” );

这个代码有6个错误 请问有哪6个

修改如下:

public void checkNum(String num) {
if (Integer.parseInt(num)%2==0)
           System.out.println(“the number is even” );
     else
System.out.println(“the number is odd” );
}

方法声明有返回值 而方法体内没有返回值
number未定义
if小括号后接关系表达式 或者布尔值
if else 格式应该是 if ()else{}