Here you can find the source of concatNumber(Collection extends Number> keys)
public static String concatNumber(Collection<? extends Number> keys)
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { public static String concatNumber(Collection<? extends Number> keys) { StringBuffer res = new StringBuffer(); for (Number key : keys) { res.append(key);// w w w . j a v a2s . c o m res.append(','); } res.deleteCharAt(res.length() - 1); return res.toString(); } }