Here you can find the source of FileName(String[] args)
public static String FileName(String[] args)
//package com.java2s; //License from project: Open Source License public class Main { public static String FileName(String[] args) { String name = null;//from w w w . j a va 2 s. co m for (int i = 0; i < args.length; i++) { if (i == 0) { name = args[i]; } else { name = name + "_" + args[i]; } } return name.toLowerCase() + ".txt"; } }