🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3310

Re: large arrays

#3310
From: John Zukowski
Date: Mon, 16 Feb 1998 00:00
26 lines
1582 bytes
MAXINT is not 32K. 4 bytes allows you to have a maximum integer value of
2 BILLION. A short has a maximum value of 32K.

	J

Mark Thompson wrote:
> 
>    I am working on a project where we have arrays of upto 64K objects, in
> this case the objects are of type byte.  The question that I have is, how
> di I access this stuff?  Since an int is a 4 byte signed entity, anything
> over 32K becomes a negative number.  When I try using a long as the index
> into the array, I get compile time errors.
>         How does one access arrays that have more than 32K elements?
> 
>         Mark E. Thompson

-- 
public class jaz extends JohnZukowski implements MageLangInstitute {
  Email    jaz@ultranet.com || jaz@magelang.com ;
  Webpage  http://www.magelang.com || http://java.miningco.com ;
  Author   Borland_JBuilder_No_Experience_Required ;
  Webpage  http://www.sybex.com/cgi-bin/nxr_new.pl?2135 ;
  Author   Java_AWT_Reference ;
  Webpage  http://www.ora.com/catalog/javawt/ ;
}
Technical Details
Message-ID: <34E7D41E.2A2F@zukowski.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bd3036$0913c620$980ba426@mark.norwood-nt1>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,bbe27ff26fb7ae80
X-Google-Attributes: gid1089d0,public
From: John Zukowski <jaz@zukowski.net>
Subject: Re: large arrays
Date: 1998/02/16
Message-ID: <34E7D41E.2A2F@zukowski.net>
X-Deja-AN: 325457619
Content-Transfer-Encoding: 7bit
References: <01bd3036$0913c620$980ba426@mark.norwood-nt1>
Mime-Version: 1.0
To: Mark Thompson <mark@norwoodinc.com>
Content-Type: text/plain; charset=us-ascii
Organization: MageLang Institute - http://www.magelang.com
Newsgroups: borland.public.jbuilder.java.api