0

So.. I have This program that generates Random Numbers with the User input.

Now I Don't know how to find the Maximum and Minimum Value from that Random Numbers.

This Code Generates Numbers So Far with No Errors.

This Is My Code So Far.

```
package patel.Jainam;
import java.util.Random;
import java.util.Scanner;
public class SelectionSort {
public static void main(String[] args)
int MaxInteger = 0;
int MinInteger;
int [] Random;
Scanner in = new Scanner( System.in );
Random random = new Random();
System.out.println ("Enter a Number: ");
int number = in.nextInt();
Random = new int[number];
for (int i = 0; i < number; i++) {
int randomInteger = random.nextInt();
randomInteger [i] = MaxInteger;
System.out.println("Random Integer: " + randomInteger);
}
}
}
```

The error is saying the follwing: *The Type of the expression Must be in array type but Resolved in int*

Please Helppp