Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { /** * compare two string * * @param actual * @param expected * @return * @see */ public static boolean isEquals(String actual, String expected) { return TextUtils.equals(actual, expected); } }