Example usage for java.time MonthDay compareTo

List of usage examples for java.time MonthDay compareTo

Introduction

In this page you can find the example usage for java.time MonthDay compareTo.

Prototype

@Override
public int compareTo(MonthDay other) 

Source Link

Document

Compares this month-day to another month-day.

Usage

From source file:Main.java

public static void main(String[] args) {
    MonthDay m = MonthDay.now();

    System.out.println(m.compareTo(MonthDay.of(Month.APRIL, 1)));

}