Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

greatest of three in java

import java.util.*;
class Main 
{
     public static void main(String[] aa){
         Scanner sc=new Scanner(System.in);
         int n1,n2,n3;
         n1=sc.nextInt();
         n2=sc.nextInt();
         n3=sc.nextInt();
         System.out.println(n1>n2 ?(n1>n3?n1:n3): (n2>n3 ? n2 : n3));
    
}
}
Comment

PREVIOUS NEXT
Code Example
Java :: java list of a class has a string that is equal to 
Java :: how to find mongo java driver version 
Java :: java random number generator 
Java :: java confirmation dialog 
Java :: java interview questions 
Java :: how to get filename without extension in java 
Java :: What would be the behavior if this() and super() used in a method? 
Java :: get distinct values from list of objects java 
Java :: how to get config values bukkit 
Java :: java string replaceall for space 
Java :: Java Access superclass attribute 
Java :: java list change element position 
Java :: pyramid pattern java 
Java :: java final modifier on method 
Java :: transformer une chaine de caractère en nombre java 
Java :: Java Change ArrayList Elements 
Java :: how to create a new imageview in android java 
Java :: what is method in java 
Java :: how to set default focus on edittext in android 
Java :: java decler variabel 
Java :: variable might not have been initialized error 
Java :: spring boot basic authentication 
Java :: get the average of an array in java 
Java :: eclipse versioning .classpath 
Java :: java stream dristinct 
Java :: teimpo en segundos java 
Java :: rotate vector 3d java 
Java :: java komplettes array ausgeben 
Java :: sealed class java codegrepper 
Java :: pack in swing 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =