🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How do I change the value of a Boolean

#7492
From: Steve Holt
Date: Fri, 15 Jun 2001 13:21
21 lines
1606 bytes
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: <3b2a0bc8_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news1.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d64ab128ef10f0b9,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-15 06:31:43 PST
Reply-To: "Steve Holt" <Steve_Holt@PortaSystems.co.uk>
From: "Steve Holt" <Steve_Holt@PortaSystems.co.uk>
Newsgroups: borland.public.jbuilder.java.language
Subject: How do I change the value of a Boolean
Date: Fri, 15 Jun 2001 14:21:04 +0100
Lines: 23
Organization: PortaSystems Ltd
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 194.217.118.116
Message-ID: <3b2a0bc8_2@dnews>
X-Trace: dnews 992611272 194.217.118.116 (15 Jun 2001 06:21:12 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news1.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!dnews