Question: : Write a java program to solve the following problem . 1 . Create a java class ArrayInfo with a main method. 2 . Ask

: Write a java program to solve the following problem .1. Create a java class ArrayInfo with a main method. 2. Ask the user to enter the size of the array. 3. Create a one-dimensional array (numbers) with the selected size from the user. (Double)4. Ask the user to fill in the created array. 5. Create a method minNumber() that receives the array numbers, and finds and returns the minimum number, 6. Create a method sum() that receives the array numbers, calculates, and returns the sum of numbers in the array. 7. Create a method firstLast6() that receives the array numbers, then, if 6 appears as either the first or last element in the array it print "6 appears as either the first or last element in the array". else, print "the array does not start or end by 6".8. Create a method printReverse() that receives the array numbers, and print the element in array in reverse order 9. In the main method invoke minNumber(), sum(), firstLast6(), and printReverse() and display the results

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!