Created
May 19, 2012 16:01
-
-
Save godie007/2731318 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class trabajoClase { | |
| public static void main(String[] args) { | |
| String num = "1234"; | |
| String cadenaInv; | |
| for (int i = num.length(); i >= 0; i--) { | |
| cadenaInv = "invertidos: " + num.charAt(i); | |
| System.out.println(cadenaInv); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment