Re: Quick way to initialize array with all zeros
- From: "Andrew Thompson" <andrewthommo@xxxxxxxxx>
- Date: 31 Mar 2007 10:28:03 -0700
On Apr 1, 4:05 am, "George Cherry" <
...
Why did you fill the int array with 1's in the for loop test
and 0's in the Arrays.fill test?
"Because I'm evil".
LOL, sometimes I crack me up. ;-)
Why not? I was (ever so slightly) worried that
the JIT compiler would notice the inefficiency of
doing something that had already been done, and
ignore the second call. (muses) maybe I should
have put all 'random' values..
Andrew T.
.
- Follow-Ups:
- Re: Quick way to initialize array with all zeros
- From: George Cherry
- Re: Quick way to initialize array with all zeros
- References:
- Quick way to initialize array with all zeros
- From: 001
- Re: Quick way to initialize array with all zeros
- From: Patricia Shanahan
- Re: Quick way to initialize array with all zeros
- From: Andrew Thompson
- Re: Quick way to initialize array with all zeros
- From: George Cherry
- Quick way to initialize array with all zeros
- Prev by Date: Re: Size
- Next by Date: Re: About JTextPane, Why "Not equal" ?
- Previous by thread: Re: Quick way to initialize array with all zeros
- Next by thread: Re: Quick way to initialize array with all zeros
- Index(es):
Relevant Pages
|