Java tutorial
//package com.java2s; public class Main { public static String getNewsPicName(String url) { int index = url.lastIndexOf("/"); String name = url.substring(index + 1); return name; } }