Java tutorial
//package com.java2s; /* Copyright 2005 Sun Microsystems, Inc. All rights reserved. You may not modify, use, reproduce, or distribute this software except in compliance with the terms of the License at: http://developer.sun.com/berkeley_license.html $Id: SlideshowUtil.java,v 1.1 2005/11/19 00:53:52 inder Exp $ */ public class Main { public static String getResourceURL(String sxURL, String resource) { return sxURL.substring(0, sxURL.lastIndexOf("/")) + resource; } }