Java tutorial
public class Main { public static void main(String[] args) { short s1 = 1; short s2 = 2; System.out.println(Short.compare(s1, s2)); } }