i am facing a problem, very strange problem.
When i update any one static variable within a class then the other static variables in the class also got updated, don't know why this is happening.
please help me out, i don't even know what to do with this problem.
this line creating problem.
private static cSet currentSet = new cSet();
private static cSet currentPracticeSet = new cSet();
public static void setCurrentPracticeSetRange(int from, int to)
{
Log.e(currentPracticeSet.getCards().size()+" And "+currentSet.getCards().size(), to+" and "+from);
getCurrentPracticeSet().getCards().clear();
getCurrentPracticeSet().getCards().addAll(getCurrentSet().getCards().subList(from, to));
Log.e("Range",currentSet.getCards().size()+"");
}
currentSet and CurrentPracticeSet are the private static member of class. Thanks,