Point out errors in the following code snippet!!
import java.util.Scanner;

class Gowri
{
public static void main(String args[])
{
Scanner input = new Scanner(System.in);
int number;
int oddEven;

System.out.println("Enter the number: ');
number = input.nextInt();

oddEven = number%2;

switch (oddEven)
{
case 0;
System.out.println(number+' is even.');

break;

case 1;
System.out.println(number+' is odd.');

break;
}
}
}

Posted on by