🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.java
Article #25863

Re: imprimir hexadecimal

#25863
From: Pablo Lanza
Date: Sat, 27 Feb 1999 00:00
20 lines
1127 bytes
Hola,

On Fri, 26 Feb 1999 13:04:22 +0100, Chimo el del Prao
<mada@filemon.uv.es> wrote:

>Buenas.
>
>S� que es una chorrada, pero estoy empezando y...
>
>La cuesti�n es que leo un fichero en hexadecimal, lo meto en un array de
>bytes, y luego quiero ver el valor del byte en hex. dentro de un
>textfield. Y no lo he conseguido, me sale en decimal o los intentos que
>hago con Sting(byte[],int,int) no me funcionan.
>
>�Alguna sugerencia?

En la clase java.lang.Integer tienes el m�todo toHexString(int). Con
este m�todo obtienes la representaci�n hexadecimal del n�mero.

Un saludo.
Technical Details
Message-ID: <36dbefef.14815151@news.bcn.ttd.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36D68DC5.85686DB4@filemon.uv.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: 1116f3,26fb24eac974534
X-Google-Attributes: gid1116f3,public
From: planza@netaldea.es (Pablo Lanza)
Subject: Re: imprimir hexadecimal
Date: 1999/02/27
Message-ID: <36dbefef.14815151@news.bcn.ttd.net>
X-Deja-AN: 449338520
Content-Transfer-Encoding: 8bit
References: <36D68DC5.85686DB4@filemon.uv.es>
Content-Type: text/plain; charset=ISO-8859-1
Organization: Telefonica Transmision de Datos
Mime-Version: 1.0
Newsgroups: es.comp.lenguajes.java