title: How to find minimum and maximum of the numbers you input without arrays ? (simple)
body: <p>I have this assignment and I am stuck, please help, I'm sure it'll be quick. Please help!</p>
  
  <p>This is my prompt:
  Write a method minMax( ) that has a int type parameter that represents how many integers you want to enter. It will input that many integers and will print the minimum and maximum values among the entered values.</p>
  
  <p>minMax(5) will input 5 integer values and print the minimum and maximum values of the entered values.</p>
  
  <p>I've tried to check the questions related to my topic, however, they were far too complicated. This is simple code.</p>
  
  <pre><code>import java.io.*;
  import java.util.*;
  
  public class Main {
    public static void main(String[] args) {
      //call your method here 
  
     }
    public static int minMax(int num){
     Scanner scan = new Scanner(System.in);
     System.out.println("Enter a value: ");
     int num = scan.nextInt();
     int min = num;
     int max = num;
     for(int i = 1; i &lt; ; i++){
  
      }
    }
  }
  </code></pre>