Skip to content

Instantly share code, notes, and snippets.

@anthonyjdella
Created April 18, 2018 01:10
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 anthonyjdella/0ef0d48f062fabeda680583e27595c79 to your computer and use it in GitHub Desktop.
Save anthonyjdella/0ef0d48f062fabeda680583e27595c79 to your computer and use it in GitHub Desktop.
Java with Magic Numbers
class MagicNumber {
String pipeDelimitedString = "This|is|an|example|of|Magic|Numbers|123 Parker Road|cityline@gmail.com";
String [] splitString = pipeDelimitedString.split("\\|");
obj.doSomething(splitString[7]);
obj.doSomething(splitString[8]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment