The purpose of the exercises is to provide an opportunity to practice skills using the Java language.
-
Exercise 1 / exe1: Write a program that reads a vector of 15 integers and displays at the end only the numbers that are stored in the even positions (indexes) of the vector.
-
Exercise 2 / exe2: Write a program that reads 10 integers from the keyboard and stores them in an array. At the end, print the vector with the stored values.
-
Exercise 3 / exe3: Read a vector of 10 elements. Create a second vector, with all elements in reverse order, that is, the last element will become the first, the penultimate will be the second and so on. Print both vectors.