public boolean same_State (Search_State s2) {
Jugs_State js2= (Jugs_State) s2;

return ((j1==js2.get_j1())&& (j2==js2.get_j2()));
}

I just want to know what the part :
...