The program that first gets a list of integers from input, gets the last value from the input, which indicates a threshold, and outputs all integers less than or equal to that last threshold value is:
import java.util.Scanner;
public class LabProgram {
/* Define your methods here */
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int[] userValues = new int[20];
int upperThreshold;
int numVals;
numVals = scnr.nextInt();
GetUserValues(userValues, numVals, scnr);
upperThreshold = scnr.nextInt();
OutputIntsLessThanOrEqualToThreshold(userValues, numVals, upperThreshold);
}
}
Read more about java programming here:
brainly.com/question/26952414
#SPJ1