try {
index = Integer.parseInt(bufferedReader.readLine());
// index = scanner.nextInt();
Student student;
if (index < college.getStudents().size()) {
System.out.print("Name : ");
student = college.getStudents().get(index);
student.setName(bufferedReader.readLine());
System.out.print("Age :");
student.setAge(Byte.parseByte(bufferedReader.readLine()));
// student.setName(scanner.nextLine());
// student.setAge(scanner.nextByte());
} else {
System.out.print("Invalid index....");
}