Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
/**
* Null-safe equivalent of {@code a.equals(b)}.
*
* @see java.util.Objects#equals
*/
public static boolean bothNullOrEqual(Object a, Object b) {
return a == null ? b == null : a.equals(b);
}
}