Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
[Java] Coding - Reverse CODE-String Method
//[Java] Coding - Reverse CODE //String 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=1234567890; String yc=String.valueOf(number); String revers=""; for (int i=yc.length()-1;i>=0;i--) { revers=revers+yc.charAt(i); } //int result=Integer.parseInt(revers); System.out.println(revers); //System.out.println(result); } }
run
|
edit
|
history
|
help
0
Reverse a Linked List in groups of given size k
Iterative Merge sort
Coding Challenge - 01 (Even numbers)
App
calc exp
Abstract Inner Class
right swastik
Java - SimpleDateFormat(ting) for XML
LRU cache - Using doubly linked list (Fast!)
name