>
java time Period ofYears(intyears)方法获取表示年数的Period。1语法publicstaticPeriodofYears(intyears)2参数year:年数,正或负值。3返