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
secret_word = "python"
correct_letters = "oy"
count = 0
while count < len(secret_word):
print(secret_word[count] if secret_word[count] in correct_letters else '_', end=" ")
count += 1