View RSS Feed

Java String

All about Java String.

  1. Pattern Method Equivalents in java.lang.String

    by , 04-26-2012 at 07:53 PM
    Support of the regular expression is also present in java.lang.String via different methods which mimic the java.util.regex.Pattern behavior. From APIs, their key excerpts are shown below for convenience.

    Public Boolean matches (String regex):
    Show whether string will be matching with the regular expression or not. This methodís invocation of the form str.matches produces similar output that was produced by expression Pattern.matches.

    Public string[] split (String ...