Java tutorial
//package com.java2s; import android.widget.EditText; public class Main { public static boolean isCompare(EditText et1, EditText et2) { String a = et1.getText().toString(); String b = et2.getText().toString(); /*jika a sama dengan b*/ if (a.equals(b)) { return false; } else { return true; } } }