Here’s my code:
String abc = "abcdefghijklmnopqrstuvwxyz";
String [] abc1 = split(abc,b);
println (abc1);
…and for what it’s worth here is what is printed:
[0] "a"
[1] "cdefghijklmnopqrstuvwxyz"
Is it possible for the ‘b’ to be included in either of the split strings? I’m not an experienced programmer so any help greatly appreciated as always.
I’m guessing you’re looking for String‘s substring() and indexOf() methods instead: