This is my code:
a1 = Splitter.fixedLength(4).split("goodgirl");
System.out.println("a1=" + a1);
a3[1] = a1.iterator().next();
System.out.println("a3[1]=" + a3[1]);
When I use Splitter class from Guava library, my string i.e. "goodgirl" gets split into [good, girl] as fixed length is 4 and gets stored in a1.
Now with a3[1] = a1.iterator().next();
I can get the substring "good" from a1.
How can i get the next substring (i.e. "girl")?