結果 : java take first n characters of string