linked list, different under Java so hard!!!