Here you can find the source of longToHex(long l)
Parameter | Description |
---|---|
s | A Java long. |
public static String longToHex(long l)
//package com.java2s; /*//from ww w. j av a 2s . c o m * Copyright (C) 2008 Pingtel Corp., certain elements licensed under a Contributor Agreement. * Contributors retain copyright to elements licensed under a Contributor Agreement. * Licensed to the User under the LGPL license. * */ public class Main { /** * Convert a long to a hex representation. * * @param s * A Java long. * @return A hex representation of the long. */ public static String longToHex(long l) { return Long.toHexString(l); } }