Java does support those symbols, they're called generics. (since SE 4 or 5)

I'm not sure what kind of error you're getting, it compiles perfectly fine for me.