🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Check if object doesn't exist???

#17747
From: Gosse Bakker
Date: Thu, 08 Oct 1998 00:00
22 lines
963 bytes
Shouldn't this work?:

(if zObject != null){
    NewObject zObject = new NewObject();
}

Greetings,
Gosse

Adam Silverthorne wrote:

> Hi, I have a simple problem... I want to create an object IF it doesn't
> already exist.  How can I test for this?
>
> For example
>
> (if zObject != exit){
>     NewObject zObject = new NewObject();
> }
>
> -Adam
> doogie@slip.net
Technical Details
Message-ID: <361CDD06.7B3DE03E@accu.uu.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <361BF7D5.D41D6F8C@slip.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,8738f3916106a60c
X-Google-Attributes: gidf74b3,public
From: Gosse Bakker <G.Bakker@accu.uu.nl>
Subject: Re: Check if object doesn't exist???
Date: 1998/10/08
Message-ID: <361CDD06.7B3DE03E@accu.uu.nl>
X-Deja-AN: 399011322
Content-Transfer-Encoding: 7bit
References: <361BF7D5.D41D6F8C@slip.net>
To: Adam Silverthorne <doogie@slip.net>
Content-Type: text/plain; charset=us-ascii
Organization: Academisch ComputerCentrum Utrecht
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language