How to implement the Python program in java language : <p>Python has the in operator which makes it simple. but how do i implement the below python concept in java since java doesnt have the in operator. 
This is a Python program</p>

<pre><code>secret_word = "python"
correct_letters = "oy"
count = 0
while count &lt; len(secret_word):
    print(secret_word[count] if secret_word[count] in correct_letters else '_', end=" ")
    count += 1
</code></pre>
