Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Informtica I
Unidad 5 / Actividad de proceso N2
Fecha: 04/11/2015
Nota: _________
import java.io.*;
class U5Ejercicio2 {
public static void main(String[] a) throws IOException
{
final int NUM = 10;
BufferedReader entrada = new BufferedReader(
new InputStreamReader(System.in));
String[] cads = new String[NUM];
System.out.println("\n\t Introduzca " + NUM + "
nombres");
for (int i = 0; i < NUM; i++) {
cads[i] = entrada.readLine();
}
System.out.println("\n\t Nombres");
for (int i = 0; i < NUM; i++) {
System.out.println(i + ":" + cads[i]);
}
}
}