Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Coding Numbers - Polindrome
//[Java]Coding Numbers - Polindrome // //Title of this code //'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_72 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { //short[] numbers={12,3,4,55,32,76,23,34,22,22,76,454,111}; int numbers=1_000; for(int i=0;i<numbers;i++) { //int i=454; int reverse=0; int origin=i; int num=i; while(num>0) { reverse=reverse*10+num%10; num=num/10; } if(origin==reverse) System.out.println(" Polindrome is "+i); //System.out.print(i+", "); } //System.out.println("Hello, World!"); } }
run
|
edit
|
history
|
help
0
1.6
Java Procedural Progamming
1_Arpansubba_Lincoln.java
preincrement
Printing
jb12.0 threads.enums
Display Page
preincrement1
Multiplying Two Base-36 Numbers
num Islands