Here you can find the source of toInt(short leftShort, short rightShort)
public static int toInt(short leftShort, short rightShort)
//package com.java2s; //License from project: Open Source License public class Main { public static int toInt(short leftShort, short rightShort) { int leftInt = leftShort; int rightInt = rightShort; return leftInt | (rightInt << 16); }/*from w w w. java 2 s .c o m*/ }