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, 11:15 AM
- By Muskar in forum Advanced JavaReplies: 12Last Post: 11-26-2010, 08:33 AM
- By imorio in forum New To JavaReplies: 7Last Post: 11-18-2010, 11:33 AM
- By albertkao in forum New To JavaReplies: 1Last Post: 11-04-2010, 06:53 PM