Created
January 12, 2016 12:24
-
-
Save indzi/41b58197f087a245e56a to your computer and use it in GitHub Desktop.
Getting specific character from specific place of a string
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
//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