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.
Politics is a circus designed to distract you from what is really going on. So is this tiny ad: