Emily Green wrote:That's a very good solution. Thank you so much, but could I create one class to hold all lookup tables ?
And instead of arrays to use Maps so that I don't iterate all the time ? These are just things I've learnt theoretically, my problem is implementing it as I'm fairly new
Emily Green wrote:That's a very good solution. Thank you so much, but could I create one class to hold all lookup tables ?
There are three kinds of actuaries: those who can count, and those who can't.
Piet Souris wrote:A TreeMap<Integer, ...> is your friend. Look at the methods 'ceilingEntry' and 'floorEntry'.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |