String data = "Nama : Gerrard|~|Alamat : Liverpool|~|Hobbi : Sepak Bola";
String firstSplit[] = data.split("\\|\\~\\|");
for(int i=0 ; i<firstSplit.length ; i++)
System.out.println(firstSplit[i]);
}
String firstSplit[] = data.split("\\|\\~\\|");
for(int i=0 ; i<firstSplit.length ; i++)
System.out.println(firstSplit[i]);
}
Demikian sontoh program Split String | Separator String In JAVA, semoga bermanfaat.
GBU.
Related Posts
0 comments:
Posting Komentar