Here you can find the source of toArray(final String[] strings)
public static char[][] toArray(final String[] strings)
//package com.java2s; //License from project: Apache License public class Main { public static char[][] toArray(final String[] strings) { if (strings == null) { return null; }//from ww w . j a va 2 s . c o m final char[][] res = new char[strings.length][]; for (int i = 0; i < strings.length; i++) { res[i] = strings[i].toCharArray(); } return res; } }