KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Here is my code: serialNumbers = ""; String[] serialArray = serialNumbers.split(","); int arrayLength = serialArray.length; arrayLength is showing 1 even there have no value in serialArray. I was expecting that length should return 0 in this case.
Tags (comma-separated)
Save Edits
Cancel