I've coded for several months in Python, and now i have to switch to Java for work's related reasons. My question is, there is a way to simulate this kind of statement
if var_name in list_name:
# do something
without defining an additional isIn()
-like boolean function that scans list_name
in order to find var_name
?