title: Does Java library have functions like std::lower_bound() , std::upper_bound() in C++ ?
body: <p>Are there any other alternatives to achieve the same in Java ?
  In C++, I can use these wonderful methods and make my life easier. Is it possible in Java too ?
  My sole aim is to write code which is simple and clean and which is not error prone.</p>