i'm not 100 sure, but i think the problem is you calling the class "String"
change it to something different than java's reserved words, like "StringWork" or something