Here you can find the source of tailOfString(String input, String sub)
public static String tailOfString(String input, String sub)
//package com.java2s; public class Main { /** Returns everything to the right of the specified string. *//*ww w. ja va2 s . c o m*/ public static String tailOfString(String input, String sub) { String retString = null; if (input != null) { int lastIdx = input.indexOf(sub); if (lastIdx != -1) retString = input.substring(lastIdx + sub.length()); else retString = input; } return retString; } }