Java Lab 10
Java Lab 10
Create a new Java file (empty Java file), save it to your H: drive, call it lab10
Insert the following code to set up your program:
Be sure to copy the test text files to the location where you saved your Java file
import java.util.Scanner;
100pt:
Loops through and prints out the array intArray. Use either a for loop or a while loop to achieve
this.
Prints out the array intArray in reverse order. Again, use a for loop or a while loop to achieve
this.
Create a new array, with a length of 10. Use a loop to fill this array with 10 random numbers
between 0 and 999. Use a loop to print this array out after it has been filled.
Notes:
intArray[0]
intArray[x] = 10;