I've adapted code from Jer Thorp's NYT API Classes (
http://blog.blprnt.com/blog/blprnt/multi-faceted-searching-with-the-nytimes-apis) to try access the Most Popular articles API. However I keep getting an
unexpected token: void error. I have posted the code below, I apologize for sloppy labeling. Can anyone help me figure out what is wrong?
import org.json.*; import java.util.ArrayList;
void setup() { NYTMostPopular p = new NYTMostPopular(); NYTMostPopularResults r = p.runSearch(); println ("There were" + r + "results"); }