Here you can find the source of substringAfter(String s, String cs)
public static String substringAfter(String s, String cs)
//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; } } }