I have a list and an array, I wanted to find each element in the array for any range which belongs to the list.
Here is some code:
int[] number = {1, 2, 3, 5};
public List<double> m = new List<double>();
m.add(1);
m.add(1.5);
m.add(2.6);
m.add(4);
m.add(50);
For Example :
Get element in array for example 2 and i see where range (between any number in list ) answer that by list ==> 1.5 and 2.6
I want a method which will return this output :
find 1 range is {1} to {1.5} and 2 range is {1.5} to {2.6}
I hope I’ve got what you want.
Prints: