Горит не верный синтаксис "public static int sr(int a,int b)".
package com.javarush.task.task04.task0420;
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(reader.readLine()); //напишите тут ваш код
int k = Integer.parseInt(reader.readLine());
int j = Integer.parseInt(reader.readLine());
int f=sr(n,k);
int d=sr(f,j);
System.out.print(d+" ");
if (d!=n && d!=k){sr2(n,k);}
if (d!=n && d!=j){sr2(n,j);}
if (d!=k && d!=j){sr2(k,j);}
public static int sr(int a,int b)
{
if (a<=b){
return b;
}else{
return a;
}
}
public static int sr2(int a,int b){
if (a<=b){
System.out.print(b+" ");
System.out.print(a+" ");
}else{
System.out.print(a+" ");
System.out.print(b+" ");}
}
}
}