import java.util.ArrayList;
import java.util.List;
public class StringSplit {
/**
* @param args
*/
public static void main(String[] args) {
String[] aa = "aaa||bbb||ccc||".split("
for(String a :aa){
System.out.println(a);
}
System.out.println(aa.length);
List <String> referralMessageList = new ArrayList<String>();
String bb = "ddd||ee||ff";
String [] referealReasons = bb.split(" for(String b :referealReasons){
referralMessageList.add(b);
}
for(String l :referralMessageList){
System.out.println(l);
}
}
}
aaa
bbb
ccc
3
ddd
ee
ff