You can only use generic type parameters if you've declared them. The generic type parameter T is not declared in the main() method. Static methods can not use the generic type parameter declared in the class header.
Even if you declared a generic type parameter in the main method like this:
Line 3 would still be invalid, because you can't assign a Generic<T> to a variable of type Generic<String>, because you don't know what the value of T is. It could be something other than String, such as Integer.
Could you hold this puppy for a sec? I need to adjust this tiny ad:
ScroogeXHTML - a fast and small RTF to HTML5 and XHTML converter library