Here you can find the source of extractFileName(String name)
public static String extractFileName(String name)
//package com.java2s; // Use of this software is governed by the GPLv3 license public class Main { public static String extractFileName(String name) { return name.substring(0, 8); }/*from ww w . j ava 2s.co m*/ }