Hello people :)
Having some difficulties regarding a simple substring.
Then length of my line is 52 and I iterate it without any problems.
When I use this untill the 22nd character it is working
final String articleNumber = StringUtils.trimToEmpty(StringUtils.substring(lineValue, 0, 22));
If I want to pass over the 22nd character, everything stops, empty.
Take a look at the StackTrace screenshot...can you figure it out why it is not working ?
final String articleNumber = StringUtils.trimToEmpty(StringUtils.substring(lineValue, 0, 22));
final String articleManufacturer = StringUtils.trimToEmpty(StringUtils.substring(lineValue, 22, 4));
final String descriptionNumber = StringUtils.trimToEmpty(StringUtils.substring(lineValue, 26, 9));
Thank you!