int mark = value1;
int position = value2;
public classType reset() {
if (mark < 0)
throw new Exception();
position = mark;
return this;
}
my thoughts:
- simply uses m to be more concise than mark
- prevents the value of mark from being modified before it is returned. (note: this class is not thread safe
- this is not a problem
clear friends, please give me some advice, thank you