title: Cannot find symbol - class T
body: <p>I've this function;</p>
  
  <pre><code>  public static T[] addToArray(T item, T... items){
      T[] array;
      int array_size = 1;
  
      if(items !=null){ array_size = items.length+1; }
  
      array = java.util.Arrays.copyOf(items, array_size);
      array[array_size-1] = item;
  
      return array;
    }
  </code></pre>
  
  <p>And I get this error <code>cannot find symbol symbol: class T</code>. The idea is to make this method generic. I never worked with generics so I'm guessing I miss some reference? </p>