Here you can find the source of StringEquals(String s1, String s2)
private static boolean StringEquals(String s1, String s2)
//package com.java2s; //License from project: Open Source License public class Main { private static boolean StringEquals(String s1, String s2) { if (s1 == s2) return true; if (s1 == null || s2 == null) return false; return s1.equals(s2); }//from w w w . j ava 2s . co m }