Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Classname {
- public static void main(String[] args) {
- String word = "50";
- String reverse = new StringBuffer(word).reverse().toString();
- int output = Integer.parseInt(reverse);
- if(output < 10){
- System.out.println("0"+output);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement