Here you can find the source of createPath(String folderName, String fileName)
public static String createPath(String folderName, String fileName)
//package com.java2s; public class Main { public static String createPath(String folderName, String fileName) { return folderName + System.getProperties().getProperty("file.separator") + fileName;//from ww w . j a v a 2 s . c om } }