In the class main:
ch=ob.nextInt();
ob is a calculator object and don't recognize the methode nextInt() who belongs to a Scanner object.

while(n<5);
the variabele n is not declared in the...