Devo mostrar vetor na ordem original e invertida... O máximo que fiz esta em baixo:
Exercicio.java/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package exercicio;
import java.util.Scanner;
/**
*
* @author Aluno
*/
public class Exercicio {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] vet = new int[10];
int val1 = 0, val2 = 0;
for(int x = 0; x < 10; x++)
{
System.out.print("vet["+x+"] = ");
vet[val1] = sc.nextInt();
val1 = val1 - 1;
}
for(int x = 0; x < 10; x++)
{
System.out.print(vet[val2]+" ");
val2 = val2 + 1;
}
}
}