Here you can find the source of convertIntToTwoChar(int n)
public static char[] convertIntToTwoChar(int n)
//package com.java2s; //License from project: Apache License public class Main { public static char[] convertIntToTwoChar(int n) { char[] result = new char[2]; result[0] = (char) (n >>> 16); result[1] = (char) (0x0000FFFF & n); return result; }//from w ww . j a v a2 s . com }