How to Parse a String in Java?

How to Parse a String in Java?