/*
* To change this license header, choose License Headers in Project
Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ejercicio4;
import java.util.Scanner;
/**
*
* @author gsium
*/
public class Ejercicio4 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner entrada = new Scanner(System.in);
String[] nombre=new String[10];
for(int i=0;i<10;i++){
System.out.println((i+1)+" Ingrese un nombre:");
nombre[i]=entrada.nextLine();
}
System.out.println("los nombre guardados son:");
for(String a:nombre){
System.out.print(a+" \n");
}
}
}