Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #22724

Re: hello here is a copy of a copy program on the net .

From "John B. Matthews" <nospam@nospam.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: hello here is a copy of a copy program on the net .
Date 2013-03-05 11:56 -0500
Organization The Wasteland
Message-ID <nospam-B61581.11563905032013@news.aioe.org> (permalink)
References <026b0609-ef87-470e-b899-fc00529bb4ce@googlegroups.com>

Show all headers | View raw


In article <026b0609-ef87-470e-b899-fc00529bb4ce@googlegroups.com>,
 giovannich1965@gmail.com wrote:

> I can not see a byte that download ... 
> it displays this: [B @ 1f33675
> continuously .... until the end
[...]

The array of bytes inherits toString() from java.lang.Object.

>   byte[] b = new byte[2];

The method println invokes toString() to display 'a string that 
"textually represents" this object.'

>   System.out.println(b);

You might try one of the java.util.Arrays.toString() variations.

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

hello here is a copy of a copy program on the net . giovannich1965@gmail.com - 2013-03-05 08:44 -0800
  Re: hello here is a copy of a copy program on the net . "John B. Matthews" <nospam@nospam.invalid> - 2013-03-05 11:56 -0500
  Re: hello here is a copy of a copy program on the net . Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-03-05 12:01 -0500
  Re: hello here is a copy of a copy program on the net . giovannich1965@gmail.com - 2013-03-05 11:20 -0800
    Re: hello here is a copy of a copy program on the net . Lew <lewbloch@gmail.com> - 2013-03-05 15:50 -0800
  Re: hello here is a copy of a copy program on the net . giovannich1965@gmail.com - 2013-03-05 11:21 -0800
  Re: hello here is a copy of a copy program on the net . giovannich1965@gmail.com - 2013-03-06 12:40 -0800

csiph-web