-
different lengths in source name, with split
How do I read all the characters in between splits? I only know how to do it with fixed length words.
I know how to do:
a[1].charAt(0) + a[1].charAt(1) + a[1].charAt(2) +a[1].charAt(3)but how do make this work for variable words lengths? I imagine it has something to do with while loops, but I’ve never been able to figure these out.
thanks