Así:
Código
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Cliente{ //contador de objetos creados private static int numeroDeCliente = 0; //has de agregar validación para el objeto en this.en = en; //por cada objeto creado sumamos una al contador numeroDeCliente++; } System.out.println("Introduzca el nombre y primer apellido del cliente numero " + Cliente.numeroDeCliente + ":"); this.setNombre(en.readLine()); } System.out.println("Introduzca la fecha de ingreso del cliente numero " + Cliente.numeroDeCliente + ":"); this.setFechaIngreso(en.readLine()); } System.out.println("Introduzca la fecha de retiro del cliente numero " + Cliente.numeroDeCliente + ":"); this.setFechaRetiro(en.readLine()); } this.setTipoHabitacion(en.readLine()); } leerCliente(); leerFechaIngreso(); leerFechaRetiro(); leerTipoHabitacion(); } /** * Retorna la información que nos interesa del cliente */ buffer.append("Cliente :"+ this.getNombre()); buffer.append("\n"); buffer.append("FechaIngreso :"+ this.getFechaIngreso()); buffer.append("\n"); buffer.append("Fecha Retiro :"+ this.getFechaRetiro()); buffer.append("\n"); buffer.append("Tipo Habitación :"+ this.getTipoHabitacion()); buffer.append("\n"); return buffer.toString(); } return fechaIngreso; } this.fechaIngreso = fechaIngreso; } return fechaRetiro; } this.fechaRetiro = fechaRetiro; } return nombre; } this.nombre = nombre; } return tipoHabitacion; } this.tipoHabitacion = tipoHabitacion; } } public class prueba { //Declaramos el buffer de lectura para leer de teclado Cliente [] clientes = new Cliente[10]; try{ //por cada cliente en el array , utilizamos el bucle for mejorado for(Cliente cli : clientes){ cli = new Cliente(br); cli.leerDatosCliente(); } error.printStackTrace(); } } }