Java File Name Create FileName(String[] args)

Here you can find the source of FileName(String[] args)

Description

File Name

License

Open Source License

Declaration

public static String FileName(String[] args) 

Method Source Code

//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";

    }
}

Related

  1. filename(String name, String ext)
  2. fileName(String path)
  3. fileName(String path)
  4. fileName(String path)
  5. filename(String prefix, String sep, String index)
  6. generateFileId(String userlogin)
  7. generateFileName()
  8. generateFileName()
  9. generateFileName(String fileName)