Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は、ユーザーがテキストを書くことになってTextareaいる場所にいます。applet
Textarea
applet
ユーザーが書いたものを検索し、「見つかった場合」のすべてのスペースを「+」記号に置き換えるコードが必要です。
例:「HelloWorld」->「Hello+World」。
私のコード:
string space = " "; if textarea.Gettext().contains(space){ space.ReplaceAll("+") }
使用する
string space = " "; textarea.setText(textarea.getText().replaceAll(space, "+"));