Here you can find the source of toChars(String from)
public static char[] toChars(String from)
//package com.java2s; //License from project: Open Source License public class Main { public static char[] toChars(String from) { return from.toCharArray(); }//from ww w.ja va 2 s.com }