Write a java application that finds the smallest of several integers. Prompt the user for the number of integers that will be input, then prompt the user for that number of integers. Evaluate the integers to determine the smallest value. Run the program to test for 3 numbers -- 50, 10, 100 Run the program a second time to test for 5 input number; -- 7, -2, 0, 15, 5 Submit your .java, .class and results. The results may be copied and pasted at the bottom of the .java file OR placed in a word document.

{

public static void main(String[] args)

{


final double inches2CM = 2.54;
double centimetre`;


System.out.print("Enter the value in inche ")
Value in inches = EasyIn.getInt()
System.out.print("

Sure! Here's how you can write a Java application that finds the smallest of several integers:

```java
import java.util.Scanner;

public class SmallestInteger {

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);

// Prompt the user for the number of integers
System.out.print("Enter the number of integers: ");
int count = scanner.nextInt();

int smallest = Integer.MAX_VALUE;

// Prompt the user for the integers and find the smallest value
for (int i = 1; i <= count; i++) {
System.out.print("Enter integer " + i + ": ");
int number = scanner.nextInt();
if (number < smallest) {
smallest = number;
}
}

// Print the smallest value
System.out.println("The smallest integer is: " + smallest);

scanner.close();
}

}
```

To test the program with the given inputs, you can simply run it twice with different input values.

First, let's run the program to test for 3 numbers: 50, 10, 100.

1. Copy the code above and save it in a file called `SmallestInteger.java`.
2. Open a command prompt or terminal in the directory where you saved the file.
3. Compile the Java source file by running the command `javac SmallestInteger.java`. This will generate a `.class` file.
4. Run the program by executing the command `java SmallestInteger`.
5. Enter `3` when prompted for the number of integers.
6. Enter `50`, `10`, and `100` as the three integers.
7. The program will output `The smallest integer is: 10`.

Now, let's run the program again to test for 5 input numbers: 7, -2, 0, 15, 5.

1. Run the program again by executing the command `java SmallestInteger`.
2. Enter `5` when prompted for the number of integers.
3. Enter `7`, `-2`, `0`, `15`, and `5` as the five integers.
4. The program will output `The smallest integer is: -2`.

You can copy and paste the results in a document or at the bottom of the `.java` file, as requested.