Java tutorial
//package com.java2s; public class Main { public static String hexify(byte inByte, boolean inCase) { return hexify((inByte & 0x00FF), inCase); } public static String hexify(int inInteger, boolean inCase) { return Integer.toHexString(inInteger); } }