Stupid question probably, but something I can not find the answer. I have a constructor, in it I want to mark some data

public Main() { // В качестве образца добавляем некоторые данные contractData.add(new MainData("Test", 2011-11-10, 12-10-2011)); } 

The bottom line is that I need to specify 3 data types, the first String, everything is clear, the second and third type is LocalDate, and I don’t understand what format I should write in the constructor, I went through the set with both my own and Google’s options, Tell me the input format pliz.

  • four
    LocalDate.of (2011,11,10)? those. new MainData ("Test", LocalDate.of (2011,11,10), LocalDate.of (2011,11,12)) - Ruslan P.
  • @ RuslanP. Yes, after editing, I understood, right, thanks. I can accept as the correct answer if you skip the message - Vladislav Zherikhov

0