Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.io.File;

import java.util.Iterator;
import java.util.List;

public class Main {
    public static String getClasspathString(List<File> c) {
        StringBuilder sb = new StringBuilder();
        Iterator<File> i = c.iterator();
        if (i.hasNext()) {
            sb.append(i.next().getAbsolutePath());
            while (i.hasNext()) {
                sb.append(File.pathSeparatorChar);
                sb.append(i.next().getAbsolutePath());
            }
        }
        return sb.toString();
    }
}