I had problems with the String.trim() method, changing it from:
public String trim() {
if (count == 0 || (value[0] > '\u0020' && value[count-1] > '\u0020'))
return this;
int begin = 0;
for (; begin < count; begin++)
if (value[begin] > '\u0020')
break;
int end = count-1;
for (; end >= 0; end--)
if (value[end] > '\u0020')
break;
return substring(begin, end);
}
to
public String trim() {
if (count == 0 || (value[0] > '\u0020' && value[count-1] > '\u0020'))
return this;
int begin = 0;
for (; begin < count; begin++)
if (value[begin] > '\u0020')
break;
int end = count-1;
for (; end >= 0; end--)
if (value[end] > '\u0020')
break;
return substring(begin, end + 1);
}
helped.
Note I just added "+ 1" in the return line.
I haven't tested this thoroughly but it made my problems go away.
John Leuner