List of usage examples for java.time YearMonth toString
@Override public String toString()
Source Link
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); System.out.println(y.toString()); }