positive_words = len([word for word in words_in_user_input if word in positive_sentence])
This is written in Python, and I wanted to convert it into Jav