W3Schools Tryit Editor
[
フレーム
]
Run ❯
Get your
own Java
server
Go to Spaces
Ctrl+Alt+P
public class Main { public static void main(String[] args) { String myStr = "Split a string by spaces, and also punctuation."; String regex = "[,\\.\\s]"; String[] myArray = myStr.split(regex); for (String s : myArray) { System.out.println(s); } } }
Split
a
string
by
spaces
and
also
punctuation
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル