Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

initialize an int array

807580May 17 2010 — edited May 17 2010
hi,

i'd like to have an int array to contain sequential values from 0 to 99 (100 numbers) without using a loop.
i somehow remember i had done this before but can't now recall how it was done. is my memory faulty?

if it can't be done at initialization, can it be done without a loop?

thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2010
Added on May 17 2010
5 comments
320 views