Java tutorial
//package com.java2s; public class Main { public static boolean isEquals(Object a, Object b) { return (a == null) ? (b == null) : a.equals(b); } }