スレッド「AWT-EventQueue-0」で例外 java.lang.NumberFormatException: 入力文字列の場合: java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) で「1.0」、java.lang.Integer.parseInt(Integer.java) で:458) java.lang.Integer.parseInt(Integer.java:499) で newform.fivth.(fivth.java:150) で newform.fivth$3.run(fivth.java:623) で java.awt.event .InvocationEvent.dispatch(InvocationEvent.java:209) で java.awt.EventQueue.dispatchEvent(EventQueue.java:597) で java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) で java.awt.EventDispatchThread.pumpEventsForFilter( EventDispatchThread.java:184) で java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) で java.awt.EventDispatchThread で。java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) での pumpEvents(EventDispatchThread.java:169) java.awt.EventDispatchThread.run(EventDispatchThread.java:122) での
これは、エラーが参照するコードの一部です。
while (results4.next())
{
for(int i=1;i<=12;i++)
{
x.add(Integer.parseInt(results4.getString(i))+0.5);
}
}
}
catch(SQLException sqlEx){
System.out.println(
"* Error retrieving data! *");
sqlEx.printStackTrace();
System.exit(1);
}