Created
June 20, 2016 23:19
-
-
Save wismer/96405cf3a3060d7d4c77b3e5a5bf4fc8 to your computer and use it in GitHub Desktop.
This file contains 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
String getValue(String data, char separator, int index){ | |
int idx = 0; | |
while (data.charAt(idx) != separator) { | |
idx++; | |
} | |
return data.substring(0, idx - 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment