Java tutorial
//package com.java2s; import android.widget.EditText; public class Main { public static boolean isSame(EditText paramEditText1, EditText paramEditText2) { if ((paramEditText1 == null) || (paramEditText2 == null)) { throw new NullPointerException("EditText can't null"); } return isSame(paramEditText1.getText().toString(), paramEditText2.getText().toString()); } public static boolean isSame(String paramString1, String paramString2) { if ((paramString1 == null) || (paramString2 == null)) { } while (!paramString2.equals(paramString1)) { return false; } return true; } }