Problems with Input Strings
Im mimicking a bank type program as a side project. I dont know exaclty how to have someone type in a money value such as 300.02 and have it read it and work with it. Everytime I do it just quits the program.
Heres the code
Java pastebin - collaborative debugging tool
Line 65 where its asking for input is where the problem is.
Re: Problems with Input Strings
Please post your code here using [code] tags :)
[code]code goes in here[/code]
looks like:
Re: Problems with Input Strings
Code was too long, didn't wanna be annoying or inconvienence to anything. Thanks for the help!
Re: Problems with Input Strings
Hello Bekuraryou1228,
I have downloaded and compiled the code from the above link and it all works fine..
I'm not sure why you are getting an error?!? I ran through it completely and it never quits unexpectedly.
Re: Problems with Input Strings
When I input a number in decimal format such as 300.00 when it asks how much to withdrawl, it just quits.
Re: Problems with Input Strings
Quote:
Originally Posted by
Bekuraryou1228
Im mimicking a bank type program as a side project. I dont know exaclty how to have someone type in a money value such as 300.02 and have it read it and work with it. Everytime I do it just quits the program.
Heres the code
Java pastebin - collaborative debugging tool
Line 65 where its asking for input is where the problem is.
It seems the user won't know what the valid pin format is. Perhaps you could specify.