Emmm algo así?
/* PoC Vectores for ArhennJosey By Shell Root*/
import java.io.*;
public class PoC{
public static void main
(String[] args
) {
int intArray[] = new int[2]; //Array
int intSuma = 0; //Suma
int intPromedio = 0; //Promedio
int intNumMa = 0; //Numero Mayor
int intNumMe = 0; //Numero Menor
for (int i=0;i<2;i++){
try{
System.
out.
println("Ingrese el Numero Nº: " + i
); strNumero = br.readLine();
intArray
[i
]=Integer.
parseInt(strNumero
); }
for (int i=0;i<2;i++){
intSuma = intSuma + intArray[i];
intPromedio = intSuma / 2;
if(intNumMa<= intArray[i]){
intNumMa = intArray[i];
}
}
System.
out.
println("La Suma es: " + intSuma
); System.
out.
println("El Promedio es: " + intPromedio
); System.
out.
println("El Numero Mayor es: " + intNumMa
); System.
out.
println("El Numero Menor es: " + intNumMe
);
}
}
PoC:root@bt:~/java# javac PoC.java
root@bt:~/java# java PoC
Ingrese el Numero NB:: 0
2
Ingrese el Numero NB:: 1
4
La Suma es: 6
El Promedio es: 3
El Numero Mayor es: 4
El Numero Menor es: 0
PD: Falta calcular el numero menor... =F