Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
split query
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Nicole.Winfrey, post: 3112538"] I know that the split method is used to produce an array of strings separated by the argument. I'm confused about the split string method in the following cases. String test = "ABC"; String[] arr = test.split(","); What's the value of arr? Is it null or it has arr[0] with the value of "ABC"? String test2 = ""; String[] arr2 = test2.split(","); What's the value of arr2? Is it null or it has arr[0] with the value of ""? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
split query
Top