Quote (Yohancy @ Oct 10 2013 11:53am)
http://s7.postimg.org/8zgl426cb/first.png
then after i fill that out and put run. this is the output
Exception in thread "main" java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:454)
at java.lang.Integer.parseInt(Integer.java:527)
at Client.main(Client.java:30)
Java Result: 1
BUILD SUCCESSFUL (total time: 55 seconds)
at line 63, input is still null. That's why you get NumberFormatException
change line 63 to 66 to this
Code
input = JOptionPane.showInputDialog( null,
"What is the name eights amount?", "Eights",
JOptionPane.QUESTION_MESSAGE );
eightsportion = Integer.parseInt( input );
and line 68-71 to this
Code
input = JOptionPane.showInputDialog( null,
"What is the name dollar ammount?", "Dollar",
JOptionPane.QUESTION_MESSAGE );
dollarportion = Integer.parseInt( input );
You also have to do that in several other places