1

特定の長さの部分文字列を使用して特殊文字を追加する方法はありますか?

String example= "abcde & fghijk";

System.out.printLn("(StringUtils.substring(StringEscapeUtils.escapeXml(example)),0,12));

current output("abcde &amp f")
expected output("abcde &amp fghij")

助けてください。ありがとう

4

0 に答える 0