Java tutorial
//package com.java2s; //License from project: Apache License import java.io.File; public class Main { public static String getSavePicName(File cacheFile, String[] urls) { return "jandan_" + cacheFile.getName().substring(0, 8) + "." + urls[urls.length - 1]; } }