JAVA.time.Period
Period p1=Period.ofMonths(1).ofWeeks(1);
System.out.println("Today+p1"+LocalDate.now().plus(p1));
p2=Period.OfMonths(1);
p2=Period.ofWeeks(1);
System.println("Today+p1: " LocalDate.now().plus(p2));
請問為什麼結果會是2個都一樣?
Today+p1: 2016-04-15
Today+p1: 2016-04-15