Quote:
Originally Posted by ntubski
|
This looks like the “
right” answer. However and just or completeness: charAt() can be used to find a position in the string, if you use a for-loop and bail out at the right moment. Internally, many of the functions that look “
more adapted to the task”, do exactly the same, although their implementation in C, C++ or other full-blown programming-languages may render them faster.