Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

MinimumAndMaximum

 public static void main(String[] args) {

        int[] arr = {10,20,30,90,50};
        int min = Integer.MAX_VALUE;
        int max = Integer.MIN_VALUE;
        
        for(int x : arr){
          if(x < min) min = x;
        }

         for(int x : arr){
           if(x > max) max = x; 
        }
Comment

PREVIOUS NEXT
Code Example
Java :: java logger errorAdd Answer 
Java :: jadavpur university 
Java :: Dhttps.protocols=TLSv1.2 
Java :: how good at you are at java 
Java :: Java Super Power java 
Java :: snapshot for loop android java 
Java :: Recyclerview scramble after scrolling 
Java :: How to adjust layout when soft keyboard appears 
Java :: crud repository count number of items in a list 
Java :: how to add classpath in spring boot 
Java :: bukkit scheduler self cancelling task 
Java :: java :: operator 
Java :: can abstract class have constructor 
Java :: java importing 
Java :: multidimensional arrays java 
Java :: android array to string 
Java :: junit maven dependency 
Java :: string formatting java 
Java :: create thread 
Java :: get the logged in user java 
Java :: java 8 stream add to list 
Java :: android cella 20*20 java 
Java :: how can i put infirmation of arraylist in a dropdown java 
Sql :: find sp name by text in sql server 
Sql :: set password for postgres user ubuntu 
Sql :: sql add column after another 
Sql :: sql list all procedures 
Sql :: sql now - 1 day 
Sql :: start mysql server linux terminal 
Sql :: psql connections 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =