// displays two user-specified values in sorted order 	
	
import java.util.*;	
	
public class SortTwo {	
	// main(): application entry point	
	public static void main(String[] args) {	
		// set input stream	
		Scanner stdin = new Scanner(System.in);	
			
		// get numbers	
		System.out.print("Enter an integer number: ");	
		int value1 = stdin.nextInt();	
		System.out.print("Enter another integer number: ");	
		int value2 = stdin.nextInt();	
			
		// rearrange numbers if necessary	
		if (value2 < value1) {    // values are not in sorted order	
			// swapping puts them in order 	
			int rememberValue1 = value1;	
			value1 = value2;	
			value2 = rememberValue1;	
		}	
			
		// display values	
		System.out.println("The numbers in sorted order are "	
				+ value1 + " and then " + value2);	
	}	
}	
