When I test it with 3,2,1 as it's variable it works. So I'm unsure of what's wrong with it. I appreciate the help.
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner input = new Scanner(System.in);
//System.out.print("Enter three values: ");
int a = input.nextInt();
int b = input.nextInt();
int c = input.nextInt();
if(a>b && a>c && b>c)
System.out.println(a+ " " +b+ " "+c);
else if(a>b && a>c && b>a)
System.out.println(b+ " " +a+ " "+c);
else if(a>b && a>c && c>b)
System.out.println(a+ " " +c+ " "+b);
else if(a>b && a>c && c>b)
System.out.println(a+ " " +c+ " "+b);
else if(b>a && b>c && a>c)
System.out.println(b+ " " +a+ " "+c);
else if(b>a && b>c && c>a)
System.out.println(b+ " " +c+ " "+a);
else if(c>a && c>b && b>a)
System.out.println(c+ " " +b+ " "+a);
}
}