Java Long to long2char(long x)

Here you can find the source of long2char(long x)

Description

longchar

License

Apache License

Declaration

public static char[] long2char(long x) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static char[] long2char(long x) {
        char[] c = new char[4];
        c[0] = (char) (x >> 48);
        c[1] = (char) (x >> 32);
        c[2] = (char) (x >> 16);
        c[3] = (char) (x);
        return c;
    }//from  w ww. j  a va2  s  .c om
}

Related

  1. long2Arr(long var, byte[] arrayBytes, int startIndex)
  2. long2array(int sz, long seed)
  3. long2buff(long n)
  4. long2Date(Long date, String interval)
  5. long2dotted(long address)
  6. long2FourChars(long i)
  7. Long2H(final long l)