Article View: borland.public.jbuilder.java.language
Article #7544Re: How to do if/else on one line?
From: Tim Dietz
Date: Tue, 05 Jun 2001 15:10
Date: Tue, 05 Jun 2001 15:10
17 lines
1186 bytes
1186 bytes
test?true:false "Alex Colic" <alex.colic@pop-ware.com> wrote in message news:3b1ce7b8$1_1@dnews... > Hi, I remember that there way a way to have an if-else statement all on one > line. Something like: > > if(test) true, false; > > Can someone give me the syntax for this? > > Thanks > > Alex > >
Technical Details
Message-ID:
<3b1cf676$2_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b1ce7b8$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,38b0f3260a20a9a4 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-06-05 08:26:18 PST From: "Tim Dietz" <tdietz@telena.com> Newsgroups: borland.public.jbuilder.java.language References: <3b1ce7b8$1_1@dnews> Subject: Re: How to do if/else on one line? Date: Tue, 5 Jun 2001 08:10:04 -0700 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 207.110.36.206 Message-ID: <3b1cf676$2_2@dnews> X-Trace: dnews 991753846 207.110.36.206 (5 Jun 2001 08:10:46 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews