Question: For any element in keysList with a value smaller than 4 0 , print the corresponding value in itemsList, followed by a space. Ex: If
For any element in keysList with a value smaller than print the corresponding value in itemsList, followed by a space.
Ex: If the input is:
the output is:
import java.util.Scanner;
public class Compare
public static void mainString args
final int SIZELIST ;
int keysList new intSIZELIST;
int itemsList new intSIZELIST;
int i;
Scanner input new ScannerSystemin;
keysList input.nextInt;
keysList input.nextInt;
keysList input.nextInt;
keysList input.nextInt;
itemsList input.nextInt;
itemsList input.nextInt;
itemsList input.nextInt;
itemsList input.nextInt;
for i ; i SIZELIST; i
if keysListi
System.out.printitemsListi;
Your code goes here
System.out.println;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
