In java strings are not terminated by a termination character. Thats in C++, C, etc.


Read the string API and try for yourself. There are plenty of ways for doing this.