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 Combine(String path1, String path2) {
        if (path2 == null || path2.isEmpty())
            return path1;
        if (path1 == null || path1.isEmpty())
            return path2;
        return new File(path1, path2).getAbsolutePath();
    }
}