SyntaxFix
Write A Post
Hire A Developer
Questions
There is a difference between length of String and array to clarify:
String
array
int a[] = {1, 2, 3, 4}; String s = "1234"; a.length //gives the length of the array s.length() //gives the length of the string