I've to Switches A & B. I want whenever would I tap on switch A, it will change the state of B and vice versa.
How to do that in Android studio?

Here's my code of Switches

```
    //first switch
        flw_Rate_switch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {

            @Override
            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                if (isChecked) {

}...

//2nd switch
        lqd_followed_switch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {

            @Override
            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                if (isChecked) {

}...

```