Advertisement
Guest User

yep

a guest
Jul 4th, 2015
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. public class Classname {
  2.  
  3.     public static void main(String[] args) {
  4.        
  5.         String word = "50";
  6.         String reverse = new StringBuffer(word).reverse().toString();
  7.         int output = Integer.parseInt(reverse);
  8.        
  9.         if(output < 10){
  10.             System.out.println("0"+output);
  11.         }
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement