mardi 2 mai 2017

Design the financial model to calculate tax rate in Java

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.

1 commentaire: