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 prettyShortParams(Class... params) {
        StringBuilder signature = new StringBuilder("(");

        for (int i = 0; i < params.length; i++) {
            signature.append(humanShort(params[i]));
            if (i < params.length - 1)
                signature.append(',');
        }

        signature.append(")");

        return signature.toString();
    }

    public static String humanShort(Class n) {
        return n.getSimpleName();
    }
}