optimization - Storing tables in java for refrencing -


so question regarding optimization of code. have table retirement date im going list below

 year of birth                              full retirement age  1937 or earlier.............................65  1938........................................65 years 2 months  1939........................................65-4  1934.......................................65-6  .  .  .and list long list 

what want store table in in list object or can pass in year of birth in method , list object , corresponding retirement age. dont want have lot of if , else statements in code because list damn big , code confusing.

what can possible solution problem? in advance

try using map instead of list. use year of birth key, can directly associated value map.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -