I am trying to use Java 8 Date Time Api java.time using Scala REPL. Just ran into a problem below:
java.time
I understand that the with keyword is reserved in scala, but is also used in the API. Any idea on how to reduce the limits?
Try wrapping with labels as follows:
val nextWed = today.`with`(java.time.temporal.TemporalAdjusters.next(DayOfWeek.WEDNESDAY))
Adding ticks denotes its literal identifier.