private boolean isSame(boolean a, boolean b) { if (a && b) { return true; } else if (!a && !b) { return true; } else { return false; } }