Java tutorial
//package com.java2s; public class Main { public static String getFilename(String url) { String filename = ""; int startid = 0; int endid = 0; startid = url.lastIndexOf("/") + 1; endid = url.length(); filename = url.substring(startid, endid); return filename; } }