Java String Sub String substringAfter(String s, String cs)

Here you can find the source of substringAfter(String s, String cs)

Description

substring After

License

Open Source License

Declaration

public static String substringAfter(String s, String cs) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String substringAfter(String s, String cs) {
        int idx = s.indexOf(cs);
        if (idx >= 0) {
            return s.substring(idx + cs.length());
        } else {/*w  w  w .  j  a v a 2s  .c  om*/
            return null;
        }
    }
}

Related

  1. SubString(String x, long y)
  2. substring(StringBuffer buf, int start, int lim)
  3. substring2ByteString(String str, int endIndex)
  4. subString4lastIndex(String string, String regex)
  5. substringAfter(final String str, final String separator)
  6. substringAfter(String s, String substr, boolean fromend)
  7. substringAfter(String sourceStr, String expr)
  8. substringAfter(String str, int beginChar, boolean last)
  9. substringAfter(String str, String delimiter)