SyntaxFix
Write A Post
Hire A Developer
Questions
This is probably not faster, and definitely not very readable. So, for the sake of colorful solutions...
int i = array.length()-1; for(; i > -1 && array[i]; i--); return i==-1