SyntaxFix
Write A Post
Hire A Developer
Questions
In addition to Lion's answer i can say that you better use if(CollectionUtils.isNotEmpty(test)){...} This also checks for null, so no manual check is not needed.
if(CollectionUtils.isNotEmpty(test)){...}