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.
空白を避けることができるように、Split() メソッドを使用する方法。
最初に String() をトリムしてから、split() メソッドを適用します。
文字列の末尾に空白があると思うので、最初に文字列をトリミングして空白を削除します。