Skip to content

Instantly share code, notes, and snippets.

@godie007
Created May 19, 2012 16:01
Show Gist options
  • Select an option

  • Save godie007/2731318 to your computer and use it in GitHub Desktop.

Select an option

Save godie007/2731318 to your computer and use it in GitHub Desktop.
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