How to go about multi epic subscriptions?

1 post / 0 new
bojack
How to go about multi epic subscriptions?

What is the best way of subscribing using an array of epics i.e String[] thisIsAStringArray = {"CS.D.GBPEUR.TODAY.IP", "CS.D.AUDUSD.TODAY.IP"};

Could the code below be the answer or there's more efficient way of doing that?

for (int i = 0; i < thisIsAStringArray.length; i++) {

System.out.println(thisIsAStringArray[i]);
subscribeToLighstreamerPriceUpdates(thisIsAStringArray[i]);
}