-2
[email protected],[email protected],[email protected],[email protected]
javaを使用して上記の文字列値を次のように変換したいと思います。私はそれを作成する方法javaを使用して文字列を文字列に変換する方法
["[email protected]","[email protected]","[email protected],"[email protected]"]
。
[文字列の#分割](https://docs.oracle.com/javase/7/docs/api/java/lang/String.html# split(java.lang.String)) – SomeJavaGuy
javaはsplitmethodを与え、正規表現に基づいて配列を取得できます。 – GvSharma
public class StringSplit { public static void main(String [] args){ 文字列入力= "wpraneethmadusanka @ gmail.com、kavindapathum @ gmail.com、pathum123 @ gmail.com、danushka @ gmail.com"; // for(文字列curLine:入力) String [] parts = input.split( "、");for(int i = 0; i