Cannot find symbol class input error
Hello i am very new 2 java!
each program me and a few friends keep writing with user input keeps
throwing up a "Cannot find symbol class input error"
Not sure why we vaguely understand classes in java but not enough to
solve the problem
Heres the code
Ignore all the import we were just unsure on which ones we needed
package jane;
import java.io.Closeable;
import java.io.InputStream;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.InputMismatchException;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.Scanner;
import java.math.*;
**Program to find sum of integer parameters digits & return the result
public class SumDigit
{
public int SumDigit(int n)
{
int sum=0;
n=Maths.abs(n);
while (n>0)
{
sum += n % 10;
n /= 10;
}
return sum;
}
public void inputAndProcess(Input in)
{
System.out.print("Type an integer:");
int n= in.nextInt();
System.out.print("The sum of the digits of:" + n);
System.out.print(" is: " + SumDigit(n));
}
public static void main(Strings[] args)
{
new SumDigit.inputAndProcess(new Input());
}
}