Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.List;

public class Main {

    public static String convertListToURLParamsString(List<?> values) {
        StringBuffer buff = new StringBuffer();
        for (Object object : values) {
            buff.append(object.toString() + "&");
        }
        buff.replace(buff.length() - 1, buff.length(), "");
        return buff.toString();
    }
}