Re: char to int cov problem
Will the thread name always be in that format? You can find the index of the hyphen and substring from there to the end. Or you can use a regular expression to remove all non-digits chars.
Re: char to int cov problem
By the way ll is a realy bad variable name. Is it 2 capital i's or capital i lowercase el or lowercase el capital i or 2 lowercase el's?
Re: char to int cov problem
edit: nvm, haven't had my coffe yet ^^
Re: char to int cov problem
Quote:
the second parameter is the length and not the index you wish to end at.
Are you sure?
When in doubt read the documentation.
Re: char to int cov problem
Quote:
Originally Posted by
Norm
Are you sure?
When in doubt read the documentation.
Maybe Sun/Oracle have it wrong? ;)
"The substring begins at the specified beginIndex and extends to the character at index endIndex - 1".