Tutorial 6 - Answers

Write a small program to declare an array containing integers -3, 50, 1, -5, 7, -20, 0, 9, 100, and find and print to the screen the smallest and the largest numbers in the array. The output should be: The Smallest Number is –20. The Largest Number is 100. public class SmallLarge {public static void main (String arg[]) ................
................