1
如何通過從函數參數中檢索T來定義Vector的類型? 例子:函數參數中的模板
public void addPlot(String plotName, int minX, int maxX,
int minY, int maxY, PlotStyle plotStyle, Class<? extends Number> type)
{
Vector<type.class> dataset = new Vector<type.class>();
}