Here you can find the source of addExtension(String name, String type)
public static String addExtension(String name, String type)
//package com.java2s; public class Main { public static String addExtension(String name, String type) { return name + createExtension(type); }/*from ww w. j a va 2s .c o m*/ /** * Creates an extension string for the given type that can be concatenated * to a base filename or for filtering files with the given type. * @param type * @return */ public static String createExtension(String type) { return "." + type; } }