/THIS IS A HOMEWORK QUESTION/

I have a .txt file containing the information:

000001    commercial       200000.00 101
000002    commercial       200000.00 101
000003    residential      100000.00 102

I need to separate this data into a set, to organize by commercial/residential, and add double value based on the 101,102 ID's.

有帮助吗?

解决方案

You just have to read each line into a string and then use it's split method with space character as delimiter.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top