String str = "My name is Chaitanya";. 5. //regular expression is a whitespace here. 6. String[] arr = str.split(" ");. 7. 8. for (String s : arr).
確定! 回上一頁