Skip to content

Instantly share code, notes, and snippets.

@indzi
Created January 12, 2016 12:24
Show Gist options
  • Save indzi/41b58197f087a245e56a to your computer and use it in GitHub Desktop.
Save indzi/41b58197f087a245e56a to your computer and use it in GitHub Desktop.
Getting specific character from specific place of a string
//charAt method will pick the specific character of the string of position number of j
for (int j = 0; j < halfString.length(); j += 2) {
char finalOutPutChar = halfString.charAt(j);
finalOutPut = finalOutPut + finalOutPutChar;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment