Here you can find the source of toInt(char msc, char lsc)
Parameter | Description |
---|---|
msc | most significant char |
lsc | least significant char |
static int toInt(char msc, char lsc)
//package com.java2s; public class Main { /**/*from w ww . j av a 2 s . co m*/ * joining 2 chars to form an int * @param msc most significant char * @param lsc least significant char * @return int form */ static int toInt(char msc, char lsc) { return ((msc << 16) | lsc); } }