I want to read values from Properties file as a range of values.
My Task is, calculating result based on points gained.
for example,points are,
<100 : some result.
101 - 110 : Some result.
111 - 120 : Some result.
121 - 130 : some result.
.....
.....
991 - 1000 : some result.
>1000 : some result.
Is any way of storing and getting result from Properties file instead of placing [key,value] pair from 1 to 1000, because i may get float values also?
should i have to write if else statements for all possible conditions?
I would use an Array
Or you can use a NavigableMap if the ranges vary
In which case the format could be
upper-limitresult