for any element in keyslist with a value greater than 40, print the corresponding value in itemslist, followed by a comma (no spaces). ex: if the input is: 32 105 101 35 10 20 30 40 the output is:

See Answers (1)

Accepted Answer

Import the java.util.Scanner class, as specified in the query.The query makes reference to the public class Arrays Key Value.in the question itself. void public static main (String [] args) ,Final int SIZE LIST = 4 as indicated in the query.How to write the program?in the question itself. void public static main (String [] args)Final int SIZE LIST = 4 as indicated in the query.keysList = new int[SIZE LIST] as specified in the query.itemsList = new int[SIZE LIST] as stated in the question.the citation in the question.In the query, keysList[0] = 13; / is referred to.In the query, keysList[1] = 47; / is referred to.keysList[2] = 71 for each key listed in the query.59; / KeysList is mentioned in the query[3]itemsList[0] = 12; featured in the available answer optionsList[1] in the query equals 36.itemsList[2] = 72 as stated in the query.the following is the response: To access every element of keysList, use the for(i=0;i(keysList.length);i++) /Loop ,array variable. itemsList[3] = 54; /other line to complete the solution..To learn more about program refer to:https://brainly.com/question/28812198#SPJ4

Related Question in Computers and Technology