Here’s a piece of my code. It has no problem under windows.
LinkedList<TreeNode> queue = new LinkedList<TreeNode>();
However in UNIX, javac gives “‘(‘ or ‘[‘ expected” at the first angle bracket near new LinkedList<TreeNode>
What’s wrong with that?
do java -version on your unix box. If you don’t get a 1.5+ version (which apparently is the case), generics won’t be supported.
You should upgrade your JDK on Unix