Skip to content

Instantly share code, notes, and snippets.

@ryancatalani
Created February 26, 2012 14:10
Show Gist options
  • Save ryancatalani/1916995 to your computer and use it in GitHub Desktop.
Save ryancatalani/1916995 to your computer and use it in GitHub Desktop.
String lets = "729711211212132661051141161041009712133";
int[] spaces = {2,2,3,3,3,2,2,3,3,3,3,3,2,3,2};
int curpos = 0;
for (int i=0; i<spaces.length; i++) {
System.out.print((char)(Integer.parseInt(lets.substring(curpos,curpos+spaces[i]))));
curpos += spaces[i];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment