Here you can find the source of makePath(String... elements)
Parameter | Description |
---|---|
elements | The elements to create a path with |
public static String makePath(String... elements)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { /**//from www. j a va 2s . c o m * Construct a file path from the given elements, i.e. separate the given elements by the file separator. * * @param elements The elements to create a path with * * @return The created path */ public static String makePath(String... elements) { return String.join(File.separator, elements); } }