Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Exe04.Java
Language: JAVA
Code:
package prova1;
import javax.swing.JOptionPane;
public class Exe04 {

     /**
      * @param args
      */
     public static void main(String[] args) {
          String rg= OptionPane.showInputDialog("Digite o seu RG ");
          String s= "";
          
          for (int a=rg.length()-1; a>=5;a--){
               s+=rg.charAt(a);
               
          }
          System.out.println(s);
     }

}
Comments: