How do i return a boolean array?

i get an error stating that i can't cast from boolean[] to boolean.

I have something like below.

method logic...

boolean [] information = {true, false};
return information; // this line does not work.

Thanks sj

Forgot to update the method definition from boolean to boolean []

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.