Write a code that returns an ArrayList of the dates of the next 4 Mondays, using 3 lines maximum (in Java and with java.util.Date and LocalDate).
public static List<String> getNextMonday(int n) { List<String> result = new ArrayList<>(); LocalDate start = LocalDate.now(); while (result.size() < n) { start = start.plusDays(1); if (start.getDayOfWeek() == DayOfWeek.MONDAY) { result.add(start.toString()); } } return result; }