🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How do I change the value of a Boolean

#7495
From: Jim Faulkner
Date: Fri, 15 Jun 2001 15:35
28 lines
1804 bytes
Why don't you just make "ok" a class variable ?

"Steve Holt" <Steve_Holt@PortaSystems.co.uk> wrote in message
news:3b2a0bc8_2@dnews...
> this doesn't change the value of ok because its passed by value
>
> change(boolean ok)
> {
>     ok = true;    // only has an effect in this methods scope
> }
>
> So I figured using the Boolean class may achive this because its passed by
> reference
>
> change(Boolean ok)
> {
>     // but no method to change value inside the class
> }
>
>
> Please don't ask ne to use the return value as this returns something
else.
> I'm probably going to get it to throw an exception instead but I'm
> interested
> to know how you would do this and why the Boolean class doesn't provide a
> method to change the value - weird if you ask me!
>
>
Technical Details
Message-ID: <3b2a2bb1$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-lei1.dfn.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b2a0bc8_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d64ab128ef10f0b9
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-15 08:41:50 PST
Reply-To: "Jim Faulkner" <jim.faulkner@bocc.citrus.fl.us>
From: "Jim Faulkner" <jim.faulkner@bocc.citrus.fl.us>
Newsgroups: borland.public.jbuilder.java.language
References: <3b2a0bc8_2@dnews>
Subject: Re: How do I change the value of a Boolean
Date: Fri, 15 Jun 2001 11:35:24 -0400
Lines: 30
Organization: Citrus County, Florida
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 207.192.93.94
Message-ID: <3b2a2bb1$1_2@dnews>
X-Trace: dnews 992619441 207.192.93.94 (15 Jun 2001 08:37:21 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-lei1.dfn.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews