I would like to know what the code fails, it tells me that "Can not instantiate the Twitter type" where I instancio a Twitter object, Work with the twitter4j library.
import java.util.List;
import twitter4j.*;
import twitter4j.Twitter;
public class twitterMain {
public static void main(String[] args) {
try {
Twitter twitter = new Twitter("XXXXXXX","YYYYYYYY");
} catch (TwitterException ex) {
System.out.println("Error: "+ex.getMessage());
}
}
}