Friday 15 August 2014

class - Java Templates: array of Template Type in Template -


I would like to apply a template that has an array of template types. Do I have a way of doing something that I have mentioned in my sample code? The problem is in the line where this.foo is assigned to a new array of template types.

  class classname & lt; T & gt; {T [] Foo Class Name () {this.foo = New T [128]; }}  

This does not work, and this is the reason why, however, An array list, spoken by, is a good replacement because it basically wraps the array into a list item.

Edit

Your Problem


No comments:

Post a Comment