Created
January 27, 2011 22:55
-
-
Save ejknapp/799479 to your computer and use it in GitHub Desktop.
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
| package java112.labs1; | |
| import java.util.*; | |
| /** | |
| * @author Eric Knapp | |
| * class ParsingDemo | |
| * | |
| */ | |
| public class ParsingDemo { | |
| public void run() { | |
| String test = "Place it into the projects/lib directory, replacing the one that's there now."; | |
| String[] testArray = test.split("\\W"); | |
| for (String token : testArray) { | |
| if (token.length() > 0) { | |
| System.out.println(token); | |
| } | |
| } | |
| } | |
| public static void main(String[] args) { | |
| ParsingDemo demo = new ParsingDemo(); | |
| demo.run(); | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment