Issue
As the title says, just looking for a string to match a client finishing sending data over a socket, so I might be looking for something like {"Message" : "END"}
in a JSON string for example.
A the most the strings will be a few hundred chars long.
Solution
They're both fast enough to be over before you know it. Better to go for the one that you can read more easily.
But from forums, blogs contains
is faster, but still negligible performance difference
Answered By - Ankur Singhal
Answer Checked By - Terry (JavaFixing Volunteer)