I'd high recommend against creating your own class named "String". Other than that, the syntax is fine. Off hand, what happens when you compile it? If it is working, why keep asking us what's wrong with it? If it isn't working, post the error your getting.
If you haven't even tried to compile it, you can't be in that much of a hurry.
As written, even with the braces, this won't work, because the "String" in the variable declaration will refer to the enclosing class, not to java.lang.String. You'll get an an error about "incompatible types". You need to change the name of the class.