Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {

    public static String getCacheName(String... params) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < params.length; i++) {
            if (null != params[i]) {
                sb.append(params[i]);

            }
            if (i != params.length - 1) {
                sb.append("_");
            }
        }
        return sb.toString();
    }
}