🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19315

how do I instantiate an int?

#19315
From: Alex Humphreys
Date: Thu, 19 Feb 1998 00:00
12 lines
1050 bytes
I'm trying to create a simple int variable that I can use as an index in
a loop.  How do I declare it?  When i try the obvious (int my_int = new
int();) I get an error saying that "class required but int found."  When
I try running the loop without declaring the index, it tells me that
my_int not found in class my_class.

And when I doing the whole thing with Integers, I can't figure out how
to add anything(!)--I get errors saying that the method
+(java.lang.Integer, java.lang.Integer) not found in class my_class.

What's going on here?  How can I resolve this?  Thanks!
Technical Details
Message-ID: <34EC6D40.C8913D5F@sema4.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,ea4f9ce85b8e382,start
X-Google-Attributes: gidf74b3,public
From: Alex Humphreys <ahumphreys@sema4.com>
Subject: how do I instantiate an int?
Date: 1998/02/19
Message-ID: <34EC6D40.C8913D5F@sema4.com>
X-Deja-AN: 326655496
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: None
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language