One simple trick to get rid of the trailing ZeroBytes:
substring(int beginIndex, int endIndex)
Returns a new string that is a substring of this string.
and
indexOf(int ch)
Returns the index within this string of the first occurrence of the specified character.
Both are parts of the String Class. You should try that :)



Reply With Quote


