This content has been marked as final. Show 2 replies
First thing is use code tag to post your code.1 person found this helpful
869839 wrote:You can find the reason for the errors from the Exception message. Here in your case the exception message is java.util.InputMismatchException
Scanner scanner=new Scanner(csv);
Values from the scanner are in the order Sue, 5, true, 3 respectively. First value is a String and you are trying to read that as Integer. So read all the value one by one like,
String s = scanner.next(); // First String Value int age = scanner.nextInt(); // Second int Value .... ....