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?