Skip to content

Instantly share code, notes, and snippets.

@wismer
Created June 20, 2016 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wismer/29cc24d0bb146d399748a5d7ffde0ea4 to your computer and use it in GitHub Desktop.
Save wismer/29cc24d0bb146d399748a5d7ffde0ea4 to your computer and use it in GitHub Desktop.
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