Writing a code in JAVA computational language it is possible to write a code using the boolean, so it is possible to have the code as:
<h3>Writing the code in latex:</h3>
<em>import java.util.Arrays;</em>
<em>public class BooleanReverse {</em>
<em>public static void main(String[] args) {</em>
<em>boolean arr[] = {true, false, true, true, false, false, false, true, false, false, true, true};</em>
<em>System.out.println("Input boolean array is "+Arrays.toString(arr));</em>
<em>reverseArray(arr);</em>
<em>System.out.println("Output boolean array is "+Arrays.toString(arr));</em>
<em>}</em>
<em>public static boolean[] reverseArray(boolean arr[]){</em>
<em>int i = 0, j = arr.length - 1;</em>
<em>boolean tmp;</em>
<em>while (j > i) {</em>
<em>tmp = arr[j];</em>
<em>arr[j] = arr[i];</em>
<em>arr[i] = tmp;</em>
<em>j--;</em>
<em>i++;</em>
<em>}</em>
<em>return arr;</em>
<em>}</em>
<em>}</em>
See more about JAVA at brainly.com/question/12975450
#SPJ4