Seems like whatever value I use for the first int field (starting position)
the substring procedure negates it and triggers a String index out of range
error.
I've tried all sorts of work arounds to no avail, am I defining the two
string variable incorrectly?
code snippet:
String lastChar = new String();
String imageDir = new String();
<...>
System.out.println(imageDir); //debug = C:\images\
//ok so far but:
lastChar = imageDir.substring(2,1);
//triggers: String index out of range: -1: -- this value is always the
negated value +1 of the of the starting position value.
I'm starting to lose hair over this so any help will also help keep my
barber in business.
Thanks,
Don Freeman