Write a java program that declares an array of 10 integers. Then, find and print the maximum number in the array.
---------
Re-write the program by developing a method to find the maximum number in the array, by passing the array to the method that will handle task. In the main, you have to declare the array and then call method and pass the array to the method.
part 1:
part 2 (using a method):
need an explanation for this answer? contact us directly to get an explanation for this answer