Rearrange the following lines of code to produce two mutually recursive methods that test whether a portion of an array has an even or an odd number of zeroes. Mouse: Drag/drop Keyboard: Grab/release (or Move ?+?. Cancel Esc Unused Zeroes.java Load default template... \} if (from >= to ) i \{ \} else if (a[from]==?){ System.out.println("Odd zeroes between 0 and 3" ); \{ 3
Rearrange the following lines of code to produce two mutually recursive methods that test whether a portion of an array has an even or an odd number of zeroes. Mouse: Drag/drop Keyboard: Grab/release (or Move ?+?. Cancel EsC Unused Zeroes.java Load default template... \{ import java.util.ArrayList; import java.util.Arrays; return evenZeroes(a, from +1 , to); \} public class Zeroes \{ else if (a[from]==0) public static boolean evenZeroes(int[] a, int from, int t \{ return oddZeroes (a, from +1 , to ); \} if (from >= to) \{ return true; \} else if (a[from]==0) public static void main(String[] args) \{ return evenZeroes (a, from +1 , to ); int [] values = new int []{1,?,?,2,?,?,?}; \} if (evenZeroes(values, ?,3) ) if (from >= to)