Results 1 to 2 of 2
- 05-02-2013, 02:06 AM #1Member
- Join Date
- Nov 2012
- Rep Power
Saving an unspecified sub-string to a new string?
I have an assignment involving accounting. I need to use data from a file, with a format like this:
Name, action(set balance, withdraw, deposit), amount, all in one line, and the same string.
I need to set up individual accounts for each name entered (as they are entered, so there can be as many accounts as necessary).
But I no idea how to differentiate between the account names, as well as finding the number in it. I'm not all that great with strings and
methods relating to them. For example, the input would look like this:
NAME BALANCE 123
NAME2 BALANCE 4324
NAME WITHDRAW 70
NAME 2 DEPOSIT 42
And so on, like that, but as input all at once from a file. I'm completely lost with this, and I have no idea how I should go about it. Does
anyone have any ideas or suggestions? If you do, thanks a lot.
- 05-02-2013, 05:02 AM #2
- By JordiLaForge in forum New To JavaReplies: 2Last Post: 04-28-2013, 01:50 AM
- By vuzuggu in forum New To JavaReplies: 1Last Post: 11-04-2011, 12:15 PM
- By Muskar in forum Advanced JavaReplies: 12Last Post: 11-26-2010, 09:33 AM
- By imorio in forum New To JavaReplies: 7Last Post: 11-18-2010, 12:33 PM
- By albertkao in forum New To JavaReplies: 1Last Post: 11-04-2010, 07:53 PM