Created
December 26, 2018 16:45
-
-
Save gaalha/b7692fbc883b18671bdae37722813fca to your computer and use it in GitHub Desktop.
Split example
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 string = "004-034556"; | |
String[] parts = string.split("-"); | |
String part1 = parts[0]; // 004 | |
String part2 = parts[1]; // 034556 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment