1) Demonstrate that when a ten element array, a, is passed, if the the called method can change the value of each element, and those changes will also change the array elements in main(); the called method must not have a return statement Before passing the array, have main() display it, and write it to a file named beforechangeAfter the change, display it and write its contents to a file named afterchange After the called method completes, main() displays the contenets of both files, beforechange afterchange Before populating array, a, from the keyboard, verify the entry is what the program expects Note:- Please type and execute this java program as soon as possible and also need an output for this java program.
1) Demonstrate that when a ten element array, a, is passed, if the the called method can change the value of each element, and those changes will also change the array elements in main(); the called method must not have a return statement
Before passing the array, have main() display it, and write it to a file named beforechangeAfter the change, display it and write its contents to a file named afterchange
After the called method completes, main() displays the contenets of both files, beforechange afterchange
Before populating array, a, from the keyboard, verify the entry is what the
Note:- Please type and execute this java program as soon as possible and also need an output for this java program.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images