Question: use java foundations The following program is supposed to read input numbers from the user and print those numbers. It should also find the smallest

The following program is supposed to read input numbers from the user and print those numbers. It should also find the smallest value and mark it in the output. Complete the program by adding your code, so that the output should look like the sample output. import java.util.Scanner; /** This program reads a sequence of values and prints them, marking the smallest value. */ public class SmallestinArray\{ public static void main(String[] args) } final int LENGTH=100; // Write your code: declare an array int currentsize =0; // Read inputs System.out.printin("Please enter values, S to stop:"); Scanner scan = new Scanner(System.in); while (scan.hasNextDouble() \&\& currentSize
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
