Question: Write a program that creates two arrays, x and y, each of size 6. The program should fill the array x with random integers
Write a program that creates two arrays, x and y, each of size 6. The program should fill the array x with random integers between 2 and 11 both inclusive and the array y is equal to the element of x+2. The program should display both arrays side-by-side vertically in columns using one for- loop. Sample Run1: Array x Array y 10 12 2 9 5 7 4 11 7 8
Step by Step Solution
There are 3 Steps involved in it
Sure here is the Java program that creates two arrays x and y each of size 6 fills the array x with ... View full answer
Get step-by-step solutions from verified subject matter experts
