i have programmed two programs and both of them when compiled highlighted the same error:Scanner ob=new Scanner(System.in);.saying cannot find symbol
void input()
{
Scanner ob=new Scanner(System.in);
System.out.print("Enter the first number:");
x=ob.nextInt();
System.out.println("Enter second number:");
y=ob.nextInt();
}