Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.io.File;

public class Main {

    public static String makePath(String path, String name) {
        String str1 = File.separator;
        String p = "";
        if (path.endsWith(str1)) {
            p = path + name;
        } else {
            p = path + str1 + name;
        }
        return p;
    }
}