I have some list of data in flat file which contains region,country,accountid,currency,gross profit and tax rate. I need to find net profit by region and gross profit total by country in USD. I have detail of currency exchange rate in hashmap. I am planning to create bean for each record and put it in arraylist. First sort the list by region and calculate net profit. Then sort the list by country and calculate gross profit total.Please suggest some better approach to design this problem.
Great article.
RépondreSupprimer