Definitely defeated today lol. Not sure why I'm not grasping the concept of setting the arguments and making it as specific as possible. If I try 0 0 15 it would not work :( please help. thanks.
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
int one = Integer.parseInt(bufferedReader.readLine());
int two = Integer.parseInt(bufferedReader.readLine());
int three = Integer.parseInt(bufferedReader.readLine());
int big = Math.max(one,Math.max(two, three));
int mid;
int small = Math.min(one,Math.min(two, three));
if (big > one && one > small){
mid = one;
System.out.println( big + " " + mid + " " + small);
} else if (big > two && two > small){
mid = two;
System.out.println( big + " " + mid + " " + small);
} else if (big > three && three > small){
mid = three;
System.out.println(big + " " + mid + " " + small);
} else {
System.out.println(big + " " + mid + " " + small);
}
}
}