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