Explore BrainMass

Java and Reversal Method

I have to write a Java program method named reversal that returns a new array that is a reversal of the original array.
Use [5.0, 4.4, 1.9, 2.9, 3.4, 3.5] to test the method.
Also, the reversal method is to send the minimum item of the array.

Output Sample:

Original Array is: 5.0 4.4 1.9 2.9 3.4 3.5
The Reversal is: 3.5 3.4 2.9 1.9 4.4 5.0
The Minimum item: 1.9

Solution Summary

This solution contains a java code that produces a new reversed array of the original array with a minimum item function.