The answer above is RDD style. Here is the approach if you use Dataframe (in Scala):
// Using isin() function to check value in list of values val listValues = Seq("Java","Scala") df.filter(df("language").isin(listValues:_*)).show()