🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #297

Re: Representing bytes in hex

#297
From: Antti S. Brax
Date: Fri, 12 Jan 2001 07:21
16 lines
1795 bytes
Luke Vanderfluit <luke@chipcity.com.au> wrote in comp.lang.java.programmer:
> Who can tell me how to represent my output in hex.

	Use Integer.toString(int radix) where radix is 16.

> I want to read a number of bytes from a file, then replace them with
> other bytes.

	Does this have something to do with your problem of getting
	a hexadecimal representation of a byte?

-- 
  /"\                                             
  \ /   ASCII RIBBON CAMPAIGN               Antti S. Brax - asb@iki.fi
   X      AGAINST HTML MAIL                         Old school
  / \   (AND NEWS TOO, dammit)                http://www.iki.fi/asb/
Technical Details
Message-ID: <slrn95tc43.2ho.asb@myntti.helsinki.fi>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-feed.riddles.org.uk!skynet.be!newsfeed1.funet.fi!news1.global-one.fi!newsfeed2.funet.fi!newsfeeds.funet.fi!news.helsinki.fi!asb
References: <3A5EA2DA.E5EEED27@chipcity.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113ae9,e0719ed8420f42f6
X-Google-Attributes: gid113ae9,public
X-Google-Thread: 10d6db,e0719ed8420f42f6
X-Google-Attributes: gid10d6db,public
X-Google-Thread: 10a146,e0719ed8420f42f6
X-Google-Attributes: gid10a146,public
X-Google-ArrivalTime: 2001-01-11 23:40:05 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-feed.riddles.org.uk!skynet.be!newsfeed1.funet.fi!news1.global-one.fi!newsfeed2.funet.fi!newsfeeds.funet.fi!news.helsinki.fi!asb
From: asb@iki.fi (Antti S. Brax)
Newsgroups: aus.computers.java,comp.lang.java.help,comp.lang.java.programmer
Subject: Re: Representing bytes in hex
Date: 12 Jan 2001 07:21:40 GMT
Organization: University of Helsinki
Lines: 16
Message-ID: <slrn95tc43.2ho.asb@myntti.helsinki.fi>
References: <3A5EA2DA.E5EEED27@chipcity.com.au>
Reply-To: asb@iki.fi.NO.SPAM
NNTP-Posting-Host: myntti.helsinki.fi
X-Trace: oravannahka.helsinki.fi 979284100 18626 128.214.205.15 (12 Jan 2001 07:21:40 GMT)
X-Complaints-To: usenet@news.helsinki.fi
NNTP-Posting-Date: 12 Jan 2001 07:21:40 GMT
X-Antti-ID: B
User-Agent: slrn/0.9.5.5 (UNIX)