I am still new to this and have been trying to figure this out for about three days. I think that I have most of it done, in fact I think that I only have 1 problem with it. When I compile it shows only one error. Any help would be greatly appreciated. It is supposed to show if a number is even or odd. Here is my code:
import java.util.Scanner;
class EvenOdd
{
public static void main(String[]args)
{
int a;
System.out.println("Enter a Number");
Scanner stdIn = new Scanner(System.in);
a = in.nextInt();
if ( a % 2 == 0 )
System.out.println("Number is even");
else
System.out.println("Number is odd");
}
}