Java String Sub String substringAfter(String value, char delim)

Here you can find the source of substringAfter(String value, char delim)

Description

substring After

License

Apache License

Declaration

public static String substringAfter(String value, char delim) 

Method Source Code

//package com.java2s;
// License: Apache 2.0, https://raw.github.com/king/king-http-client/LICENSE-APACHE

public class Main {
    public static String substringAfter(String value, char delim) {
        if (value == null) {
            return null;
        }/*w  w  w.j  a  v  a  2 s .  c  o  m*/

        int pos = value.indexOf(delim);
        if (pos >= 0) {
            return value.substring(pos + 1);
        }
        return null;
    }
}

Related

  1. substringAfter(String string, String delim)
  2. substringAfter(String string, String delimiter)
  3. substringAfter(String template, String toFind, String defaultTo)
  4. substringAfter(String text, int index)
  5. substringAfter(String text, String after)
  6. substringAfterFirstIndex(String value)
  7. substringAfterIfExist(String source, String rev)
  8. subStringAfterIgnoreCase(String str, String separator, Integer num)
  9. substringAfterLast(final String str, final String separator)