I need help because my brain cells cannot find what is wrong with this program! Here\'s the code
import java.util.*;
public class student{
publ
You initialize you array. And then default values are given (every int is initialized 0)
int []myArray= new int[num];
int minValue=myArray[0];
it will be 0
so nothing smaller can be found than zero if you type in positive integers
Solution First fill your array with the user input THEN do
int minValue=myArray[0];
Or use Integer.MIN_VALUE.