Java Integer Convert To convertIntToTwoChar(int n)

Here you can find the source of convertIntToTwoChar(int n)

Description

convert Int To Two Char

License

Apache License

Declaration

public static char[] convertIntToTwoChar(int n) 

Method Source Code

//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
}

Related

  1. convertIntToDayOfWeek(int day)
  2. convertIntToDouble(final int[] intValues)
  3. convertIntToDWord(final int value)
  4. convertIntToLong(Integer intId)
  5. convertInttoMultiByte(int val)
  6. convertIntToUsignedBytes(int integer)
  7. fromInt(byte[] buffer, int pos, int i)
  8. fromInt(final int value, final int length)
  9. fromInt(int i)