Here you can find the source of toInt(short s0, short s1)
Parameter | Description |
---|---|
s0 | the least significant short |
s1 | the most significant short |
public static int toInt(short s0, short s1)
//package com.java2s; public class Main { /**// w w w . j av a2s . co m * Returns an int built from two shorts. * * @param s0 the least significant short * @param s1 the most significant short */ public static int toInt(short s0, short s1) { return (s0 & 0xFFFF) | (s1 << 16); } }