Here you can find the source of unsignedHalfwordToString(int value)
Parameter | Description |
---|---|
value | the value to render |
public static String unsignedHalfwordToString(int value)
//package com.java2s; /**/*from w w w .ja v a 2s . co m*/ * Copyright (c) 2010 Martin Geisse * * This file is distributed under the terms of the MIT license. */ public class Main { /** * Interprets the lowest 16 bits of the specified value as an * unsigned integer number and renders that number as a four-digit * hex string. * @param value the value to render * @return Returns the rendered value */ public static String unsignedHalfwordToString(int value) { return String.format("%04x", value & 0xffff); } }