我一直使用allSum变量来解决这个问题。为什么会这样?
public static int reverse(int goingToReversedNumber){
int holderParamater=gointToReversedNumber;
int allSum=0;
int tempVariable;
int howLoopIsGonnaHappen=getDigitCount(goingToReversedNumber);
for(int i=1;i<=howLoopIsGonnaHappen;i++){
tempVariable=holderParamater%10;
allSum += (tempVariable*(10**(howLoopIsGonnaHappen-i)));
holderParameter/=10;
}return allSum;
}
}// most of the methods are been deleted because of the terms of StackOverflow