答:函数代码如下:public String[] split(String str, int chars){int n = (str.length()+ chars – 1)/chars;String ret[] = new String[n];for(int i=0; i... [长度]