Linked lists in Java with ints