When I was extremely new to CP, I used to manually sort the arrays(by typing the whole sorting code) instead of using the Java in-built Arrays.sort(array_name) of the util package.
I would do a similar thing for binary search, until I came to know of Arrays.binarySearch(array_name,key) of the util package.
Programmers, I want to know whether there are any other such short-cut array functions, String functions, techniques,tricks, anything that you use that saves a lot of time or code writing and would help newbie coders like me as well as anyone who may not be aware of them.
You can also mentions short-cuts of other languages to help the users coding in them.
Thanks in advance