Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
[Java] Coding - Reverse CODE - Mathematical Method
//[Java] Coding - Reverse CODE //Mathematical Method // //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[]) { int number=123456789; int reverse=0; while (number!=0) { reverse*=10; // Сдвигаем порядок вверх для прибавления reverse+=number%10; // Забираем остаток number/=10; // Сдвигаем порядок вниз } System.out.println(reverse); } }
run
|
edit
|
history
|
help
0
get top k frequent elements ( Priority Queue implementation )
getListVehicules
Path finding given 2D array
4.a
recursion_java
Multiples of 3 and 5
toma!
191fa07050
Star
Frequency