The input spec for my program will be similar to the following :
1 CD at 10.50
2 phones at 500
1 book at 200
This input is given in this format in the command line.
[<quantity> <item> at <price>]
Can somebody give me a small piece of code to parse this kind of input from the command line and set them into individual objects(say an object like Order which has separate setter methods for quantity,item and price..)