Sorry for my bad English, I am individually getting array list value to the checkboxes. (Actually, these are the weekdays that are coming from the activity). but the problem
Try using OR (||) in your if() statement.
if(a==b || a==c || b==c) { //Your action }
or Better use switch cases,
switch(position) { case 0: ... break; case 1: ... break; default: ... }