Im not sure what's wrong, but the last condition says my code is wrong. Can someone help please?
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 keyboard = new Scanner(System.in);
int a = keyboard.nextInt();
int b = keyboard.nextInt();
int c = keyboard.nextInt();
if(a > b && a > c)
{
if (b > c)
{
System.out.println(a + " " + b + " " + c);
}
else
{
System.out.println(a + " " + c + " " + b);
}
}
else if(b > a && b > c)
{
if (a > c)
{
System.out.println(b + " " + a + " " + c);
}
else
{
System.out.println(b + " " + c + " " + a);
}
}
else if(c > a && c > b)
{
if (a > b)
{
System.out.println(c + " " + a + " " + b);
}
else
{
System.out.println(c + " " + b + " " + a);
}
}
}
}