字节流排序低字节在前高字节在后

public static String highLow(Integer count){
        int temp = ((count & 0xff) << 8) + ((count & 0xff00) >> 8);
        String xString =  Integer.toHexString(temp);
        if (xString.length()<4){
            xString = "0"+xString;  
        }
        return xString.toUpperCase();  //转大写
    }
原文地址:https://www.cnblogs.com/ling-1991/p/7448182.html