Jackcess Numberformatexception

前端 未结 2 415
旧时难觅i
旧时难觅i 2021-01-27 08:35

I\'m trying to create a program which takes input from a CSV-file and writes it to a Java-created Access database and table. The program uses a while-loop to go through the CSV-

相关标签:
2条回答
  • 2021-01-27 08:53

    In your code you have use Scanner.next() which returns String value. Most of the time your table column values not match with String that is why you getting Numberformatexception

    0 讨论(0)
  • 2021-01-27 08:55

    Most probably you may try to convert a String type one to a numeric type. Please check data types of your data that you are trying to use.

    0 讨论(0)
提交回复
热议问题