Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #16926

Re: initialize an array of booleans

From "Roedy Green" <roedy.green@1:261/38.remove-s5i-this>
Subject Re: initialize an array of booleans
Message-ID <50197005.55893.calajapr@time.synchro.net> (permalink)
Newsgroups comp.lang.java.programmer
References <50197002.55874.calajapr@time.synchro.net>
Date 2012-08-01 18:09 +0000
Organization tds.net

Show all headers | View raw


  To: bob smith
From: Roedy Green <see_website@mindprod.com.invalid>

On Tue, 31 Jul 2012 12:58:58 -0700 (PDT), bob smith
<bob@coolfone.comze.com> wrote, quoted or indirectly quoted someone
who said :

>Is there any easy way to initialize an array of booleans like this?
>
>boolean b[] = new boolean(false)[100];

for basic info on arrays including initialisation, see 
http://mindprod.com/jgloss/array.html

For this kind of info, a basic text book, even an out-of-date free one is 
invaluable.
--
Roedy Green Canadian Mind Products
http://mindprod.com
The greatest shortcoming of the human race is our inability to understand the 
exponential function.
 ~ Dr. Albert A. Bartlett (born: 1923-03-21 age: 89)
http://www.youtube.com/watch?v=F-QA2rkpBSY

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

initialize an array of booleans "bob smith" <bob.smith@1:261/38.remove-s5i-this> - 2012-08-01 18:09 +0000
  Re: initialize an array of booleans "Eric Sosman" <eric.sosman@1:261/38.remove-s5i-this> - 2012-08-01 18:09 +0000
  Re: initialize an array of booleans "Lew" <lew@1:261/38.remove-s5i-this> - 2012-08-01 18:09 +0000
  Re: initialize an array of booleans "Roedy Green" <roedy.green@1:261/38.remove-s5i-this> - 2012-08-01 18:09 +0000

csiph-web