title: How to add range in contains()?
body: <p>Like the question at the above, I need to find whether a list (ArrayList to be specific) contains a certain range of numbers like 1 to 7. How can I include this range in if condition like this <code>if(list.contains(range))</code> ?</p>