Java tutorial
//package com.java2s; public class Main { public static String getFileNameFromUrl(String value) { if (value.length() > 0) return value.substring(value.lastIndexOf('/') + 1); else return value; } }