Hello, I don't understand what is the difference between this block of code:
case "-i":
                synchronized (allPeople) {
                    for (int i = 0; i < args.length-1; i++) {
                        person = allPeople.get(i);
                        String newFormatBirthdate = sdfOutput.format(person.getBirthDate());
                        System.out.println(allPeople.get(i).getName() + " " +
                                (person.getSex().equals("Sex.MALE") ? "m" : "f") + " " +
                                newFormatBirthdate);
                    }
                }
            break;
and this block of code:
case "-i":
                    synchronized (allPeople) {
                        for (int i = 1; i < args.length; i++) {
                            int id = Integer.parseInt(args[i]);
                            Person person = allPeople.get(id);
                            System.out.print(person.getName() + " ");
                            System.out.print(person.getSex().equals(Sex.MALE) ? "m " : "f ");
                            System.out.println(outputFormat.format(person.getBirthDate()));
                        }
                    }
                    break;
Why is the second one better?