The for-loop solution should be the easiest, as you can use the Math.floor
function to get the start of your desired list:
for (double d = Math.floor(start); d <= Math.ceil(end); d += 1.0)
list.add(d);
13
solved Filter element in array of doubles