I'm trying to get the equivalent of the following java code in scala for querying multiple keywords in twitter4j application
// In java
FilterQuery filterQuery = new FilterQuery();
String[] itemsToTrack = {"python", "java", "php"};
filterQuery.track(itemsToTrack);
twitterStream.filter(filterQuery);
// In scala I have written
val itemsToTrack = Array("python", "java", "php")
val filterQuery = new FilterQuery()
filterQuery.track(itemsToTrack)
Above line gives error as it is expecting a string rather than a string array.
So my question is what if the equivalent of java code above using scala for querying multiple keywords in scala.
NOTE - > I'm new in scala