Here you can find the source of tailOf(String s, char separator)
public static String tailOf(String s, char separator)
//package com.java2s; /*//from www. j a v a2 s .c o m * Copyright (c) 1998 - 2005 Versant Corporation * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Versant Corporation - initial API and implementation */ public class Main { public static String tailOf(String s, char separator) { int index = s.indexOf(separator); if (index < 0) return ""; return s.substring(index + 1); } }