优质代码

来源:互联网 发布:淘粉吧与淘宝什么关系 编辑:程序博客网 时间:2024/04/20 21:08
1、buf.append("(");
        if (argTypes != null) {
            for (int i = 0; i < argTypes.length; i++) {
                if (i > 0) {
                    buf.append(", ");
                }
                Class<?> c = argTypes[i];
                buf.append((c == null) ? "null" : c.getName());
            }
        }

        buf.append(")");

2、public static int compare(int x, int y) {
        return (x < y) ? -1 : ((x == y) ? 0 : 1);
    }

3、


0 0