Write a java program to input an integer numbers and find the highest number among them (using array)

To write a Java program that inputs integer numbers and finds the highest number among them using an array, you can follow these steps:

1. Import the necessary package:
```java
import java.util.Scanner;
```

2. Create a `Scanner` object to read input from the user:
```java
Scanner scanner = new Scanner(System.in);
```

3. Prompt the user to enter the number of integers they want to input and store it in a variable:
```java
System.out.print("Enter the number of integers: ");
int length = scanner.nextInt();
```

4. Create an array to store the integers:
```java
int[] numbers = new int[length];
```

5. Use a loop to input the integers from the user and store them in the array:
```java
System.out.println("Enter the integers:");
for (int i = 0; i < length; i++) {
numbers[i] = scanner.nextInt();
}
```

6. Initialize a variable `max` with the first number in the array:
```java
int max = numbers[0];
```

7. Use another loop to compare each element in the array with the current maximum number and update `max` if a larger number is found:
```java
for (int i = 1; i < length; i++) {
if (numbers[i] > max) {
max = numbers[i];
}
}
```

8. Print the highest number:
```java
System.out.println("The highest number is: " + max);
```

9. Close the scanner to release system resources:
```java
scanner.close();
```

Putting it all together, the complete Java program will look like this:

```java
import java.util.Scanner;

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

System.out.print("Enter the number of integers: ");
int length = scanner.nextInt();

int[] numbers = new int[length];

System.out.println("Enter the integers:");
for (int i = 0; i < length; i++) {
numbers[i] = scanner.nextInt();
}

int max = numbers[0];

for (int i = 1; i < length; i++) {
if (numbers[i] > max) {
max = numbers[i];
}
}

System.out.println("The highest number is: " + max);

scanner.close();
}
}
```

By following these steps, you can create a Java program that inputs integer numbers and finds the highest number among them using an array.