Print Palindrome in Java -


I have the following code and I want to print palindrome on the console. Please tell me what to do if the condition is to be done, it can print all Pandithrom between 0 and 10000.

This palindrome is 161, 1221, 4554 etc. ....

JAVA CODE:

  ET palindrome []; Palindrome = New Int [10000]; For (integer number = 0; calculation & lt; palindrome.length; count ++) {palindrome [count] = 0; If () {System.out.println (count); }}  

something that can work

  Public Boolean isPalindrome (last integer number) {end string s = integer. Stosting (num); Return s.equals (new stringbuffer (s) .reverse (). ToString ()); }  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -