fun main(args: Array<String>) {; val text = "-----abc123-------"; println(text.trim('-')); }. 実行結果. abc123. 複数文字指定も可能です.
確定! 回上一頁