getting error java.util.inputmismatchexception when i am entering employee full name.
import java.util.*; class Demo { String id,name,address; double bs,da,hra,pf,ts,as,gs,it; void Input() { Scanner s=new Scanner(System.in); System.out.println("EnterEmployee ID"); id=s.next(); System.out.println("Enter Employee Name"); name=s.next(); System.out.println("Enter Employee Address"); address=s.next(); System.out.println("Enter Employee Base Salary"); bs=s.nextDouble(); } void Ca() { da=.2*bs; hra=.1*bs; pf=0.05*bs; ts=da+bs+hra-pf; as=ts*12; System.out.println("|================Employee Payroll ============== |"); System.out.println("Employee ID = "+id); System.out.println("Employee Name = "+name); System.out.println("Employee Address = "+address); System.out.println("Employee Base Salary = "+bs); System.out.println("|===============DA PF HRA AND TOTAL SALARY AND TAXES =========== |"); System.out.println("DA = "+da); System.out.println("HRA = "+hra); System.out.println("PF = " +pf); System.out.println("Total Salary = "+ts); System.out.println("Annual Salary = "+as); if(as<180000) { System.out.println("No Tax"); gs=as; System.out.println("Gross salary = "+gs); } else if(as>180000 && as<300000) { System.out.println("10 percent of Annual Salary have to pay as Tax"); it=.1*as; gs=as-it; System.out.println("Gross Salary = "+gs); } else if(as>300000 && as<400000) { System.out.println("20 percent of Annual Salary have to pay as Tax"); it=.2*as; gs=as-it; System.out.println("Gross Salary = "+gs); } else if(as>400000) { System.out.println("30 percent of Annual Salary have to pay as Tax"); it=0.3*as; gs=as-it; System.out.println("Gross Salary = "+gs); if (gs>=1000000) { System.out.println(" Grading = A GRADE"); } } else {System.out.println("INVALID KEYWORD"); } } }