Declare and create an integer array that will contain the numbers 1 through 100. Use a for loop to initialize the indexed variables.
What will be an ideal response?
```
int[] wholeNumbers = new int[100];
for(int i = 0; i < 100; ++i)
wholeNumbers[i] = i + 1;
```
Computer Science & Information Technology
You might also like to view...
A sound wave provides information about a sound.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
MP3 files use lossy compression to reduce the size of an audio file
Indicate whether the statement is true or false
Computer Science & Information Technology
Adobe Acrobat and Adobe Reader are associated with which type of file?
A) Image file B) Video file C) Bitmap image D) Portable Document Format
Computer Science & Information Technology
A(n) _____ hard drive is found in a home theater PC
Fill in the blank(s) with correct word
Computer Science & Information Technology