/* * SelectorInt - Implements Selector, but only for the * specific type int. */ public class SelectorInt { public static int min( int x1, int x2, int x3 ) { if ( x1 < x2 ) { if ( x1 < x3 ) return 1; else return 3; } else { if ( x2 < x3 ) return 2; else return 3; } } }