Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I am not doing so well with arrays, for those of you who answer,please try and e

ID: 3614930 • Letter: I

Question

I am not doing so well with arrays, for those of you who answer,please try and explain what the different parts mean, I am going totry and practice this stuff over the weekend. I really appreciateall the help though, I apologize to those of you who answer so manyof my questions,
  1. Write a class/static method that takes an array of ints as aparameter and returns an array of booleans (of the same length asthe parameter array). For each element in the parameter array whosevalue is even, the corresponding element of the returned array willbe assigned the value true; all the other elements of the returnedarray will be assigned the value false.
     2. Write a class/static method that takesan array of Strings as a parameter and returns an array of Strings(of the same length as the parameter array) containing the elementsof the parameter array truncated to the first 5 characters (or nottruncated if not longer than 5 characters).

Explanation / Answer

please rate - thanks import java.util.*;    importjava.io.*;             public class untitled {     public static void main(String[] args)     { int i;        int[]a={1,2,3,4,5,6,7,8,9,10};                                                            //declare and initialize the arrays        boolean [] b=newboolean[10];        String []c={"this","longer","whynot","who","guess"};        String [] d=newString[5];        convert(a,b);                                                                        //call convert to change to boolean        System.out.println("Booleanvaluesreturned a b");             //output new array        for(i=0;i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote