I have two different methods here and neither are close.
I feel like the input methods are inconsistent...
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
if ( a >= b && b >= c ){
System.out.println( a + " " + b + " " + c );}
if ( a >= b && c >= b ){
System.out.println( a + " " + c + " " + b );}
if ( b >= a && a >= c ){
System.out.println( b + " " + a + " " + c );}
if ( b >= c && c >= a ){
System.out.println( b + " " + c + " " + a );}
if ( c >= a && a >= b ){
System.out.println( c + " " + a + " " + b );}
if ( c >= b && b >= a ){
System.out.println( c + " " + b + " " + a );}
/*int x = 0;
int y = 0;
int z = 0;
// find the greatest
if ( a >= b && a >= c ){
x = a;}
if ( b >= a && b >= c ){
x = b;}
if ( c >= a && c >= b ){
x = c;}
//System.out.println( x + " " + y + " " + z );
// find the lowest
if ( a <= b && a <= c ){
z = a;}
if ( b <= a && b <= c ){
z = b;}
if ( c <= a && c <= b ){
z = c;}
//System.out.println( x + " " + y + " " + z );
// find the median
if ( a <= z && a <= x ){
y = a;}
if ( b <= z && b <= x ){
y = a;}
if ( c <= z && c <= x ){
y = a;}
System.out.println( x + " " + y + " " + z ); */
}
}