Pass List of Strings to Java method -


i have question how use java method boolean[] hasroles(list<string> roleidentifiers).

how can send list of strings?

the method returns boolean[] not boolean error complaining how use result

list<string> data = ...; if (currentuser.hasroles(data)) // not work boolean[] if not boolean 

you need check element of boolean[]

one alternative check hasallroles return boolean or check specific roles interested in index.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -