Here you can find the source of splitStringToChars(String str)
private static List<String> splitStringToChars(String str)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.List; public class Main { private static List<String> splitStringToChars(String str) { List<String> split = new ArrayList<>(str.length()); for (int i = 0; i < str.length(); ++i) split.add(str.substring(i, i + 1)); return split; }/*from ww w .j a v a2s . c o m*/ }