title: The program that first gets a list of integers from input
body: <pre><code>import java.util.Scanner;  
  
  class Main {
      public static void main(String[] args) {
          vector&lt;int&gt; vec;
          int n, num, t;
          Scanner myObj = new Scanner(System.in);
  
          int userName = myObj.nextInt();
          n = myObj.nextInt() ;
      
          for (int i = 0; i &lt; n; ++i) {
              num = myObj.nextInt();
              vec.push_back(num);
          }
       
          t = myObj.nextInt();
      
          for (int i = 0; i &lt; vec.size(); ++i) {
              if (vec[i] &lt;= t) {
                  System.out.println = vec[i]  + &quot; &quot;;
              }
          }
     
          return 0;
      }
  </code></pre>
  <p>Example:</p>
  <p>Input:</p>
  <p>5</p>
  <p>50</p>
  <p>60</p>
  <p>140</p>
  <p>200</p>
  <p>75</p>
  <p>100</p>
  <p>Output:</p>
  <p>50</p>
  <p>60</p>
  <p>75</p>
  <p>Can anyone help me with these, please?</p>
  <p>Write a program that first gets a list of integers from the input. The input begins with an integer indicating the number of integers that follow. Then, get the last value from the input, which indicates a threshold. Output all integers less than or equal to that last threshold value.</p>
  <p>The 5 indicates that there are five integers in the list, namely 50, 60, 140, 200, and 75. The 100 indicates that the program should output all integers less than or equal to 100, so the program outputs 50, 60, and 75.</p>