09_Palindrome Number
1.Question

2.Solution
public class Solution { public boolean isPalindrome(int x) { if(x < 0){ return false; } int temp = 0; int origin = x; while( x != 0){ temp = temp * 10 + x % 10; x = x / 10; System.out.println(temp); } return (origin == temp); } }
3.Test

    http://www.cnblogs.com/makexu/

 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号