One liner to check if element is in the list
<p>I have been working on and off with Java/Python. Now in this situation I want to check if the element is in the list and do stuff...</p>

<p>Python says:</p>

<pre><code>if "a" in ["a", "b", "c"]:
    print "It's there!"
</code></pre>

<p>Does java provide any one liner for this rather than creating ArrayList / Set or similar data structure in steps and adding elements to it?</p>

<p>Thanks </p>
