import [Link].
JOptionPane;
public class AscendingAndDescending
{
public static void main(String[] args)
{
int one =
[Link]([Link](null,"Enter 3
integers "));
int two =
[Link]([Link](null,"Enter 3
integers "));
int three =
[Link]([Link](null,"Enter 3
integers "));
if(one > two && one > three)
{
[Link]("Highest: "+ one);
if(two > three){
[Link]("Second: "+ two);
[Link]("Third: "+ three);
}else if(two < three){
[Link]("Second: "+ three);
[Link]("Third: "+ two);
}
}else if(two > one && two > three)
{
[Link]("Highest: "+two);
if(three > one)
{
[Link]("Second: "+ three);
[Link]("Third: "+one);
}else if(three < one)
{
[Link]("Second: "+ one);
[Link]("Third: "+three);
}
}else if(three > one && three > two)
{
[Link]("Highest: "+three);
if(two > one)
{
[Link]("Second: "+two);
[Link]("Third: "+ one);
}else if(two < one)
{
[Link]("Second: "+one);
[Link]("Third: "+ two);
}