KKajal PalWrite it as short x = cal.mul((short) 5, (short) 6); Integer literals in Java are of type int, so you need to cast the arguments to short in order to pass them to mul(short, short)06:19