All pastes #947373 Raw Edit

YOUR WELCOME

public text v1 · immutable
·published 2008-03-18 13:34 UTC
rendered paste body
import java.io.*;
public class Array {  
public static void main(String[] args) {
	
int big= 0;
int small= 10000000;

int[] num= new int [10];

for (int i = 0; i<10 ; i++){
num[i]=(int)(Math.random()*100+0); 
big=Math.max(0,num[i]);
small=Math.min(num[i], small);
}

System.out.println("The biggest value is "+ big);
System.out.println("The smallest value is "+ small);
}
}