Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  reverse a string
Language: JAVA
Code:
public class dG16NCwC {

    public static void main(String[] args) {
       
         int no=5432,rem,rev=0;
         while(no!=0)
         {   
             rem=no%10;
             rev=rev*10+rem;
             no=no/10;
         }     
    }

}          
Comments: