Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to find smallest number in array java

for(int i = 0;i<arr.length;i++){
	int min = arr[0];	
    if(arr[i]<min){
    	min = arr[i];
    }
    return min;  
}
 
PREVIOUS NEXT
Tagged: #find #smallest #number #array #java
ADD COMMENT
Topic
Name
1+2 =