### Question:
Span implements TextFontInfo { public Span[] split(int index) { if (index < 0 || index >= text.length()) { throw new IllegalArgumentException("非法的切分数组坐标(index): " + index); } Span s1 = this.clone() .setText(this.text.substring(0, index)); Span s2 = this.clone() .setText(this.text.substring(index)); return new Span[]{s1, s2}; } protected  Span();  Span(Font font, Double fontSize, String text);  Span(String text); int[] getColor(); Span setColor(int[] rgb); Span setColor(int r, int g, int b); int length(); @Override Font getFont(); Span setFont(Font font); @Override Double getFontSize(); Span setFontSize(Double fontSize); @Override Double getLetterSpacing(); Span setLetterSpacing(Double letterSpacing); boolean isBold(); Span setBold(boolean bold); boolean isItalic(); Span setItalic(boolean italic); boolean isUnderline(); Span setUnderline(boolean underline); String getText(); Span setText(String text); Boolean isIntegrity(); Span setIntegrity(Boolean integrity); List<TxtGlyph> glyphList(); Double[] getDeltaX(); Rectangle blockSize(); Span[] split(int index); Span setLinebreak(boolean linebreak); boolean hasLinebreak(); LinkedList<Span> splitLineBreak(); @Override Span clone();  }### Answer:
@Test public void split() { Span span = new Span("你好OFD R&W"); Span[] split = span.split(2); System.out.println(); Assertions.assertEquals(split[0].getText(), "你好"); Assertions.assertEquals(split[1].getText(), "OFD R&W"); }