1public static LocalDate dateInput(String userInput) {
2
3 DateTimeFormatter dateFormat = DateTimeFormatter.ofPattern("M/d/yyyy");
4 LocalDate date = LocalDate.parse(userInput, dateFormat);
5
6
7 System.out.println(date);
8 return date ;
9}
10