Write a Java program to get the difference between the largest and smallest values in an array of integers
belongs to collection: Array Programs in Java with Examples
All Answers
total answers (1)
belongs to collection: Array Programs in Java with Examples
total answers (1)
In this demo I have used NetBeans IDE 8.2 for debugging purpose. But you can use any java programming language compiler as per your availability..
Result:
Original Array: [10, 20, 30, 40, 50, 60, 70, 80, 90]
Difference between the largest and smallest araay element is: 80
need an explanation for this answer? contact us directly to get an explanation for this answer