class Strings {

    public static List<String> split(String string, char c) {
        List<String> list = new ArrayList<String>();
        int lastFoundIndex = -1;
        int nextFoundIndex;
        while ((nextFoundIndex = string.indexOf(c, lastFoundIndex + 1)) != -1) {
            String value = string.substring(lastFoundIndex + 1, nextFoundIndex).trim();
            if (!value.isEmpty()) {
                list.add(value);
            }
            lastFoundIndex = nextFoundIndex;
        }
        String value = string.substring(lastFoundIndex + 1).trim();
        if (!value.isEmpty()) {
            list.add(value);
        }
        return list;
    }

    private  Strings();

}