Here you can find the source of toArray(String string)
private static String[] toArray(String string)
//package com.java2s; //License from project: Apache License public class Main { private static String[] toArray(String string) { return string.split(","); }/*from w ww .java 2s . c om*/ }