AQUI LES DEJO LA PLANTILLA :
package ejericicio8;
import java.io.*;
public class Main {
public static void main(String[] args)throws IOException {
BufferedReader lectura = new BufferedReader(new InputStreamReader(System.in));
int A,B,temporal;
System.out.println("ingrese el numero A");
A = Integer.parseInt(lectura.readLine());
System.out.println("ingrese el numero B");
B = Integer.parseInt(lectura.readLine());
if (A<B){temporal=B;B=A;A=temporal;}
System.out.println(" Hola!! el orden es = "+A+","+B);
}
}