Link List implementation using Java