Example usage for java.text DateFormat equals

List of usage examples for java.text DateFormat equals

Introduction

In this page you can find the example usage for java.text DateFormat equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Overrides equals

Usage

From source file:Main.java

public static void main(String args[]) {
    DateFormat df1 = DateFormat.getDateInstance();
    DateFormat df2 = DateFormat.getTimeInstance();
    System.out.println(df1.equals(df2));
}